diff --git a/entrypoint.sh b/entrypoint.sh index d87f8b8..dbd84da 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,9 @@ if [[ "${TARGET_PORT}" != "" ]]; then sed -i -e "s,8123,${TARGET_PORT},g" /etc/nginx/sites-enabled/default fi if [[ "${BASE_PATH}" != "" ]]; then - sed -i -e "s,/ident,${BASE_PATH}/ident,g" \ + sed -i -E "s,([ \^])/ident,\1${BASE_PATH}/ident,g" \ + /etc/nginx/snippets/active.location + sed -i -E "s,host./api,host}${BASE_PATH}/api,g" \ /etc/nginx/snippets/active.location fi