Improve portal root routing in Caddy generator
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user