fix: docker nginx entrypoint

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2217>
1930-first-upload-in-a-batch-always-fails
jo 2022-11-26 14:29:57 +01:00 zatwierdzone przez JuniorJPDJ
rodzic 6455e21cf2
commit f60ba2d9be
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -0,0 +1 @@
Fix docker nginx entrypoint

Wyświetl plik

@ -2,10 +2,10 @@
set -eux
envsubst "$(env | awk -F = '{printf \" $$%s\", $$1}')" \
< /etc/nginx/nginx.conf.template \
> /etc/nginx/nginx.conf
TEMPLATE_PATH="/etc/nginx/nginx.conf.template"
CONFIG_PATH="/etc/nginx/nginx.conf"
cat /etc/nginx/nginx.conf
ALLOWED_VARS="$(env | cut -d '=' -f 1 | xargs printf "\${%s} ")"
envsubst "$ALLOWED_VARS" < "$TEMPLATE_PATH" | tee "$CONFIG_PATH"
nginx-debug -g 'daemon off;'