nginx: When no base url, remove the unneed rewrite

This commit is contained in:
nemunaire 2023-05-12 16:30:17 +02:00
parent b7344f2b73
commit acabe41e07

View File

@ -30,4 +30,9 @@ run() {
run "${FIC_BASEURL}" "${PATH_STATIC}"
touch "/base_changed"
if [ "${FIC_BASEURL}" == "/" ] && [ -f /etc/nginx/conf.d/default.conf ]
then
sed -i "s:location / {:location @notneeded {:" /etc/nginx/conf.d/default.conf
fi
exit 0