Skip to content

Commit

Permalink
[#603] Add support for DISABLE_FMEA variable in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Oct 3, 2024
1 parent 77454fd commit 73a606d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions deploy/.docker/config.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
}
2 changes: 1 addition & 1 deletion deploy/.docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit 73a606d

Please sign in to comment.