Skip to content

Commit

Permalink
allow JS expressions in config file (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: Haritz S. Sierra <[email protected]>
  • Loading branch information
haritzsaiz authored Feb 16, 2024
1 parent be98b9b commit b3c3305
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions env-docker-config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
window._env_ = {
INFO: {
UI_VERSION: "XXX_UI_VERSION",
BUILD_ID: "XXX_BUILD_ID",
BUILD_TIME: "XXX_BUILD_TIME",
CHART_VERSION: "${CHART_VERSION}",
HELM_REVISION: "${HELM_REVISION}",
UI_VERSION: `XXX_UI_VERSION`,
BUILD_ID: `XXX_BUILD_ID`,
BUILD_TIME: `XXX_BUILD_TIME`,
CHART_VERSION: `${CHART_VERSION}`,
HELM_REVISION: `${HELM_REVISION}`,
},
AUTH_COGNITO_ENABLED: "${COGNITO_ENABLED}",
AUTH_COGNITO_HOSTED_UI_DOMAIN: "${COGNITO_HOSTED_UI_DOMAIN}",
AUTH_OIDC_AUTHORITY: "${OIDC_AUTHORITY}",
AUTH_OIDC_CLIENT_ID: "${OIDC_CLIENT_ID}",
LAMASSU_CA_API: "https://${DOMAIN}/api/ca",
LAMASSU_DMS_MANAGER_API: "https://${DOMAIN}/api/dmsmanager",
LAMASSU_DEVMANAGER:"https://${DOMAIN}/api/devmanager",
LAMASSU_ALERTS:"https://${DOMAIN}/api/alerts",
LAMASSU_VDMS:"",
LAMASSU_VDEVICE:"",
AUTH_COGNITO_ENABLED: `${COGNITO_ENABLED}`,
AUTH_COGNITO_HOSTED_UI_DOMAIN: `${COGNITO_HOSTED_UI_DOMAIN}`,
AUTH_OIDC_AUTHORITY: `${OIDC_AUTHORITY}`,
AUTH_OIDC_CLIENT_ID: `${OIDC_CLIENT_ID}`,
LAMASSU_CA_API: `https://${DOMAIN}/api/ca`,
LAMASSU_DMS_MANAGER_API: `https://${DOMAIN}/api/dmsmanager`,
LAMASSU_DEVMANAGER:`https://${DOMAIN}/api/devmanager`,
LAMASSU_ALERTS:`https://${DOMAIN}/api/alerts`,
LAMASSU_VDMS:``,
LAMASSU_VDEVICE:``,
CLOUD_CONNECTORS: $CLOUD_CONNECTORS
}

0 comments on commit b3c3305

Please sign in to comment.