mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
update ngxproxy
This commit is contained in:
parent
68ca21b4de
commit
730375a1b9
@ -84,8 +84,8 @@ if [ "$HTTPS" == "y" ]; then
|
||||
read -p "Secure headers [y/n]: " HEADERS
|
||||
done
|
||||
|
||||
if [ "$HEADERS" == "n" ]; then
|
||||
sed -i '/headers_params/d' /sites-enabled/$NAME.conf
|
||||
if [ "$HEADERS" == "y" ]; then
|
||||
sed -i 's|#include /etc/nginx/conf/headers_params|include /etc/nginx/conf/headers_params|g' /sites-enabled/$NAME.conf
|
||||
fi
|
||||
else
|
||||
cp /etc/nginx/conf/vhost_http.conf /sites-enabled/${NAME}.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user