Improve portal root routing in Caddy generator

This commit is contained in:
2026-06-10 07:24:42 +02:00
parent 8e1b9ae5a5
commit 82aec95632
+4 -10
View File
@@ -89,16 +89,10 @@ write_portal_routes() {
respond "AppFactory OK" 200
}
handle / {
redir /portal 302
}
redir / /portal/ 302
redir /portal /portal/ 302
handle /portal {
reverse_proxy appfactory-portal:9100
}
handle /portal/* {
uri strip_prefix /portal
handle_path /portal/* {
reverse_proxy appfactory-portal:9100
}
@@ -122,7 +116,7 @@ EOF_ROUTES
}
handle {
redir /portal 302
redir /portal/ 302
}
EOF_ROUTES
}