Fix entrypoint BASE_PATH

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-19 02:02:56 -08:00
parent b4ad48f6d6
commit 08fb3fd41c

View File

@ -4,7 +4,9 @@ if [[ "${TARGET_PORT}" != "" ]]; then
sed -i -e "s,8123,${TARGET_PORT},g" /etc/nginx/sites-enabled/default sed -i -e "s,8123,${TARGET_PORT},g" /etc/nginx/sites-enabled/default
fi fi
if [[ "${BASE_PATH}" != "" ]]; then 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 /etc/nginx/snippets/active.location
fi fi