AAE-4023 fix BASE_PATH as / (#1831)

This commit is contained in:
Marcello Teodori
2020-11-27 15:02:56 +01:00
committed by GitHub
parent b869e91869
commit b96f6cece4
3 changed files with 9 additions and 12 deletions

View File

@@ -7,20 +7,16 @@ server {
rewrite ^([^.]*[^/])$ $1/ permanent;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location = /app.config.json {
root ${NGINX_ENVSUBST_OUTPUT_DIR};
}
location ${BASE_PATH} {
set $EVAL_BASE_PATH "${BASE_PATH}";
if ($EVAL_BASE_PATH = "/") {
root /usr/share/nginx/html;
}
index index.html index.htm;
alias /usr/share/nginx/html;
}
location = ${BASE_PATH}/app.config.json {
location ~ /app.config.json {
alias ${NGINX_ENVSUBST_OUTPUT_DIR}/app.config.json;
}

View File

@@ -6,6 +6,6 @@ set -e
env \
PROJECT_NAME=app \
BASE_PATH=/workspace \
BASE_PATH=${BASE_PATH:-/workspace} \
DOCKER_IMAGE_REPO=alfresco/alfresco-content-app \
$(dirname $0)/run.sh