add missing PROVIDER env variable for docker (#2404)

* add missing PROVIDER env variable for docker

* fix docker env propagation

* fix code

* update docker vars
This commit is contained in:
Denys Vuika
2022-01-18 11:10:25 +00:00
committed by GitHub
parent 37acccd6d6
commit c3de2da2ae
3 changed files with 23 additions and 0 deletions

View File

@@ -10,6 +10,12 @@ echo "replace APP_CONFIG_AUTH_TYPE"
-i "${NGINX_ENVSUBST_OUTPUT_DIR}/app.config.json"
fi
if [ -n "${APP_CONFIG_PROVIDER}"]; then
echo "replace APP_CONFIG_PROVIDER"
sed -e "s/\"providers\": \".*\"/\"providers\": \"${APP_CONFIG_PROVIDER}\"/g" \
-i "${NGINX_ENVSUBST_OUTPUT_DIR}/app.config.json"
fi
if [ -n "${APP_CONFIG_IDENTITY_HOST}" ]; then
echo "replace APP_CONFIG_IDENTITY_HOST"
replace="\/"