Skip to content

Commit 6ab3b73

Browse files
cmckni3shockey
authored andcommitted
feat(docker): allow configUrl to be used in Docker (via #4881)
Closes #4861
1 parent 53fe60a commit 6ab3b73

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ENV OAUTH_ADDITIONAL_PARAMS "**None**"
1515
ENV SWAGGER_JSON "/app/swagger.json"
1616
ENV PORT 8080
1717
ENV BASE_URL ""
18+
ENV CONFIG_URL ""
1819

1920
COPY nginx.conf /etc/nginx/
2021

docker-run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ if [[ -n "$API_URLS" ]]; then
5858
sed -i "s|^\(\s*\)url: .*,|\1urls: $API_URLS,|g" $INDEX_FILE
5959
fi
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
6267
if [[ -n "${PORT}" ]]; then
6368
sed -i "s|8080|${PORT}|g" /etc/nginx/nginx.conf

0 commit comments

Comments
 (0)