feat(docker): allow configUrl to be used in Docker (via #4881)
Closes #4861
This commit is contained in:
@@ -15,6 +15,7 @@ ENV OAUTH_ADDITIONAL_PARAMS "**None**"
|
|||||||
ENV SWAGGER_JSON "/app/swagger.json"
|
ENV SWAGGER_JSON "/app/swagger.json"
|
||||||
ENV PORT 8080
|
ENV PORT 8080
|
||||||
ENV BASE_URL ""
|
ENV BASE_URL ""
|
||||||
|
ENV CONFIG_URL ""
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/
|
COPY nginx.conf /etc/nginx/
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,11 @@ if [[ -n "$API_URLS" ]]; then
|
|||||||
sed -i "s|^\(\s*\)url: .*,|\1urls: $API_URLS,|g" $INDEX_FILE
|
sed -i "s|^\(\s*\)url: .*,|\1urls: $API_URLS,|g" $INDEX_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$CONFIG_URL" ]]; then
|
||||||
|
sed -i "s|^\(\s*\)url: .*,|\1configUrl: '$CONFIG_URL',|g" $INDEX_FILE
|
||||||
|
sed -i "s|^\(\s*\)urls: .*,|\1configUrl: '$CONFIG_URL',|g" $INDEX_FILE
|
||||||
|
fi
|
||||||
|
|
||||||
# replace the PORT that nginx listens on if PORT is supplied
|
# replace the PORT that nginx listens on if PORT is supplied
|
||||||
if [[ -n "${PORT}" ]]; then
|
if [[ -n "${PORT}" ]]; then
|
||||||
sed -i "s|8080|${PORT}|g" /etc/nginx/nginx.conf
|
sed -i "s|8080|${PORT}|g" /etc/nginx/nginx.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user