forked from InseeFrLab/onyxia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.sh
32 lines (32 loc) · 2.91 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
echo "window._env_['BASE_API_URL'] = '$BASE_API_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['SERVICES_URL'] = '$SERVICES_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['HOMEPAGE_URL'] = '$HOMEPAGE_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['DNS'] = '$DNS';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['GIT_PATH'] = '$GIT_PATH';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['PASSWORD'] = '$PASSWORD';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['GRAFANA_BASE_URI'] = '$GRAFANA_BASE_URI';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['MINIO_BASE_URI'] = '$MINIO_BASE_URI';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['MINIO_END_POINT'] = '$MINIO_END_POINT';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['MINIO_PORT'] = '$MINIO_PORT';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['MINIO_END_MINIMUM_DURATION_MS'] = '$MINIO_END_MINIMUM_DURATION_MS';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['SALON_ROCKETCHAT'] = '$SALON_ROCKETCHAT';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['VAULT_BASE_URI'] = '$VAULT_BASE_URI';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['INSTANCES_MAX'] = '$INSTANCES_MAX';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['ONYXIA_GIT'] = '$ONYXIA_GIT';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['ONYXIA_ROCKETCHAT'] = '$ONYXIA_ROCKETCHAT';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['SWAGGER_API'] = '$SWAGGER_API';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['GHOST_URL'] = '$GHOST_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['GRAFANA_URL'] = '$GRAFANA_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['KUB_KC_CLIENT_ID'] = '$KUB_KC_CLIENT_ID';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['KUB_KC_URL'] = '$KUB_KC_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['KUB_APISERVER_URL'] = '$KUB_APISERVER_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['AUTH_TYPE'] = '$AUTH_TYPE';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['AUTH_OIDC_CLIENT_ID'] = '$AUTH_OIDC_CLIENT_ID';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['AUTH_OIDC_REALM'] = '$AUTH_OIDC_REALM';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['AUTH_OIDC_URL'] = '$AUTH_OIDC_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['AUTH_OIDC_SSL_REQUIRED'] = '$AUTH_OIDC_SSL_REQUIRED';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['AUTH_OIDC_RESOURCE'] = '$AUTH_OIDC_RESOURCE';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['AUTH_OIDC_PUBLIC_CLIENT'] = '$AUTH_OIDC_PUBLIC_CLIENT';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['AUTH_OIDC_CONFIDENTIAL_PORT'] = '$AUTH_OIDC_CONFIDENTIAL_PORT';" >> /usr/share/nginx/html/env-config.js
exec "$@"