fix #653 : add basepath modification at runtime trough env vars (#654)

This commit is contained in:
Sergiu Vidrascu
2018-09-21 18:09:37 +03:00
committed by Denys Vuika
parent 9a030cdf6f
commit 3c6ec05e26

View File

@@ -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;"