diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 5ed5b7d08..28f554e9b 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,10 +1,14 @@ #!/bin/sh set -eu -for f in /srv/*.js +for f in /usr/share/nginx/html/*.js do # shellcheck disable=SC2016 envsubst '${VELA_API},${VELA_FEEDBACK_URL},{$VELA_DOCS_URL}' < "$f" > "$f".tmp && mv "$f".tmp "$f" done +NGINX_CONF=/etc/nginx/conf.d/default.conf +# shellcheck disable=SC2016 +envsubst '${VELA_API}' < "$NGINX_CONF" > "$NGINX_CONF".tmp && mv "$NGINX_CONF".tmp "$NGINX_CONF" + exec "$@"