diff --git a/deploy/.docker/config.js.template b/deploy/.docker/config.js.template index b6c53699..d2167341 100644 --- a/deploy/.docker/config.js.template +++ b/deploy/.docker/config.js.template @@ -7,4 +7,5 @@ window.__config__ = { FTA_FMEA_AUTHENTICATION:'${FTA_FMEA_AUTHENTICATION}', FTA_FMEA_AUTH_SERVER_URL:'${FTA_FMEA_AUTH_SERVER_URL}', FTA_FMEA_AUTH_CLIENT_ID:'${FTA_FMEA_AUTH_CLIENT_ID}', + FTA_FMEA_DISABLE_FMEA:'${FTA_FMEA_DISABLE_FMEA}' } diff --git a/deploy/.docker/docker-entrypoint.sh b/deploy/.docker/docker-entrypoint.sh index e35282cc..3f735264 100644 --- a/deploy/.docker/docker-entrypoint.sh +++ b/deploy/.docker/docker-entrypoint.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh set -eu -envsubst '${FTA_FMEA_BASENAME} ${FTA_FMEA_API_URL} ${FTA_FMEA_ADMIN_REGISTRATION_ONLY} ${FTA_FMEA_TITLE} ${FTA_FMEA_AUTHENTICATION} ${FTA_FMEA_AUTH_SERVER_URL} ${FTA_FMEA_AUTH_CLIENT_ID}' < /etc/nginx/config.js.template > /usr/share/nginx/html/config.js +envsubst '${FTA_FMEA_BASENAME} ${FTA_FMEA_API_URL} ${FTA_FMEA_ADMIN_REGISTRATION_ONLY} ${FTA_FMEA_TITLE} ${FTA_FMEA_AUTHENTICATION} ${FTA_FMEA_AUTH_SERVER_URL} ${FTA_FMEA_AUTH_CLIENT_ID} ${FTA_FMEA_DISABLE_FMEA}' < /etc/nginx/config.js.template > /usr/share/nginx/html/config.js exec "$@"