File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ ENV OAUTH_ADDITIONAL_PARAMS "**None**"
1515ENV SWAGGER_JSON "/app/swagger.json"
1616ENV PORT 8080
1717ENV BASE_URL ""
18+ ENV CONFIG_URL ""
1819
1920COPY nginx.conf /etc/nginx/
2021
Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ if [[ -n "$API_URLS" ]]; then
5858 sed -i " s|^\(\s*\)url: .*,|\1urls: $API_URLS ,|g" $INDEX_FILE
5959fi
6060
61+ if [[ -n " $CONFIG_URL " ]]; then
62+ sed -i " s|^\(\s*\)url: .*,|\1configUrl: '$CONFIG_URL ',|g" $INDEX_FILE
63+ sed -i " s|^\(\s*\)urls: .*,|\1configUrl: '$CONFIG_URL ',|g" $INDEX_FILE
64+ fi
65+
6166# replace the PORT that nginx listens on if PORT is supplied
6267if [[ -n " ${PORT} " ]]; then
6368 sed -i " s|8080|${PORT} |g" /etc/nginx/nginx.conf
You can’t perform that action at this time.
0 commit comments