MSP-5097 add env variables to Dockerfile

This commit is contained in:
foxxy committed 2025-03-24 13:06:10 +03:00
1 parent c60ca37e61
commit 560c11c67b
6 files changed
+66 -12

No files matched your search

Executable
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
CONFIG_PATH="/opt/msp/isp-admin-ui/config.js"
cat <<EOF > $CONFIG_PATH
// DON'T TOUCH
// THIS FILE FOR PRODUCTION BUILD
window.config = {
ENABLE_PASSWORD_LOGIN: ${ENABLE_PASSWORD_LOGIN:-true},
APP_TOKEN: '${APP_TOKEN:-"default_token"}',
};
EOF
exec nginx -g "daemon off;"