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