fix: docker nginx entrypoint
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2217>
This commit is contained in:
parent
6455e21cf2
commit
f60ba2d9be
|
@ -0,0 +1 @@
|
|||
Fix docker nginx entrypoint
|
|
@ -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;'
|
||||
|
|
Loading…
Reference in New Issue