From 3c6ec05e266412e2bd0da8bea2c79c1cd6c56f93 Mon Sep 17 00:00:00 2001 From: Sergiu Vidrascu Date: Fri, 21 Sep 2018 18:09:37 +0300 Subject: [PATCH] fix #653 : add basepath modification at runtime trough env vars (#654) --- docker-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 556f478b7..df7a273a9 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -3,5 +3,8 @@ if [[ $ACSURL ]]; then sed -i s%{protocol}//{hostname}{:port}%"$ACSURL"%g /usr/share/nginx/html/app.config.json fi +if [[ $BASEPATH ]]; then + sed -i s%href=\"./"%href=\""$BASEPATH"\"%g /usr/share/nginx/html/index.html +fi nginx -g "daemon off;"