forked from wazuh/wazuh-docker
Allow any other ports on nginx config
This commit is contained in:
@@ -77,13 +77,11 @@ server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
fi
|
else
|
||||||
|
|
||||||
if [ "${NGINX_PORT}" = "80" ]; then
|
|
||||||
cat > /etc/nginx/conf.d/default.conf <<EOF
|
cat > /etc/nginx/conf.d/default.conf <<EOF
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen ${NGINX_PORT};
|
||||||
listen [::]:80;
|
listen [::]:${NGINX_PORT};
|
||||||
location / {
|
location / {
|
||||||
auth_basic "Restricted";
|
auth_basic "Restricted";
|
||||||
auth_basic_user_file /etc/nginx/conf.d/kibana.htpasswd;
|
auth_basic_user_file /etc/nginx/conf.d/kibana.htpasswd;
|
||||||
@@ -96,5 +94,4 @@ server {
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
exec nginx -g 'daemon off;'
|
exec nginx -g 'daemon off;'
|
||||||
|
|||||||
Reference in New Issue
Block a user