From b49d6e83645be9ce603e051cea5bbddcccacaf63 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 12 Dec 2023 16:40:09 +0000 Subject: [PATCH] updating entrypoint for udp/tcp/both/allowedip's --- docker-entrypoint.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index cf74293..e1dc518 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,14 +1,7 @@ #!/bin/sh -# Default to HTTP if PROTOCOL is not set -PROTOCOL="${PROTOCOL:-http}" -# Replace placeholders with environment variable values -envsubst '$BACKEND_ADDRESS $BACKEND_PORT $PROTOCOL $MATOMO_URL $MATOMO_SITE_ID' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf +# Substitute environment variables in the NGINX config template +envsubst < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf -# Start nginx in the foreground -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 +# Start NGINX exec nginx -g 'daemon off;'