kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix: docker nginx entrypoint
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2217>1930-first-upload-in-a-batch-always-fails
rodzic
6455e21cf2
commit
f60ba2d9be
|
@ -0,0 +1 @@
|
||||||
|
Fix docker nginx entrypoint
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
envsubst "$(env | awk -F = '{printf \" $$%s\", $$1}')" \
|
TEMPLATE_PATH="/etc/nginx/nginx.conf.template"
|
||||||
< /etc/nginx/nginx.conf.template \
|
CONFIG_PATH="/etc/nginx/nginx.conf"
|
||||||
> /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;'
|
nginx-debug -g 'daemon off;'
|
||||||
|
|
Ładowanie…
Reference in New Issue