| 12345678910111213141516171819 | #!/bin/bashif [ "${NGINX_HTTPS_ENABLED}" = "true" ]; then    # set the HTTPS_CONFIG environment variable to the content of the https.conf.template    HTTPS_CONFIG=$(envsubst < /etc/nginx/https.conf.template)    export HTTPS_CONFIG    # Substitute the HTTPS_CONFIG in the default.conf.template with content from https.conf.template    envsubst '${HTTPS_CONFIG}' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conffienv_vars=$(printenv | cut -d= -f1 | sed 's/^/$/g' | paste -sd, -)envsubst "$env_vars" < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.confenvsubst "$env_vars" < /etc/nginx/proxy.conf.template > /etc/nginx/proxy.confenvsubst < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf# Start Nginx using the default entrypointexec nginx -g 'daemon off;'
 |