Skip to content

Commit

Permalink
Cleanup NGinx config (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Apr 20, 2021
1 parent ca8d3f5 commit 34bfff7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions bitwarden/rootfs/etc/cont-init.d/nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# ==============================================================================
declare certfile
declare keyfile
declare max_body_size

bashio::config.require.ssl

Expand All @@ -19,11 +18,3 @@ if bashio::config.true 'ssl'; then
else
mv /etc/nginx/servers/direct.disabled /etc/nginx/servers/direct.conf
fi

max_body_size="10M"
# Increase body size to match config
if bashio::config.has_value 'request_size_limit'; then
max_body_size=$(bashio::config 'request_size_limit')
fi
sed -i "s/%%max_body_size%%/${max_body_size}/g" \
/etc/nginx/includes/server_params.conf
2 changes: 0 additions & 2 deletions bitwarden/rootfs/etc/nginx/includes/server_params.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ server_name $hostname;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;

client_max_body_size %%max_body_size%%;

0 comments on commit 34bfff7

Please sign in to comment.