1
0
Fork 0

updating entrypoint for udp/tcp/both/allowedip's

This commit is contained in:
colin 2023-12-12 16:40:09 +00:00
parent eb0fac3b5a
commit b49d6e8364
1 changed files with 3 additions and 10 deletions

View File

@ -1,14 +1,7 @@
#!/bin/sh #!/bin/sh
# Default to HTTP if PROTOCOL is not set
PROTOCOL="${PROTOCOL:-http}"
# Replace placeholders with environment variable values # Substitute environment variables in the NGINX config template
envsubst '$BACKEND_ADDRESS $BACKEND_PORT $PROTOCOL $MATOMO_URL $MATOMO_SITE_ID' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf envsubst < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
# Start nginx in the foreground # Start NGINX
curl -k -I $PROTOCOL://$BACKEND_ADDRESS:$BACKEND_PORT
echo checking nginx modules
nginx -V 2>&1 | grep -o http_sub_module
echo /etc/nginx/nginx.conf
cat /etc/nginx/nginx.conf
exec nginx -g 'daemon off;' exec nginx -g 'daemon off;'