Improve portal root routing in Caddy generator
This commit is contained in:
@@ -89,16 +89,10 @@ write_portal_routes() {
|
|||||||
respond "AppFactory OK" 200
|
respond "AppFactory OK" 200
|
||||||
}
|
}
|
||||||
|
|
||||||
handle / {
|
redir / /portal/ 302
|
||||||
redir /portal 302
|
redir /portal /portal/ 302
|
||||||
}
|
|
||||||
|
|
||||||
handle /portal {
|
handle_path /portal/* {
|
||||||
reverse_proxy appfactory-portal:9100
|
|
||||||
}
|
|
||||||
|
|
||||||
handle /portal/* {
|
|
||||||
uri strip_prefix /portal
|
|
||||||
reverse_proxy appfactory-portal:9100
|
reverse_proxy appfactory-portal:9100
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,7 +116,7 @@ EOF_ROUTES
|
|||||||
}
|
}
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
redir /portal 302
|
redir /portal/ 302
|
||||||
}
|
}
|
||||||
EOF_ROUTES
|
EOF_ROUTES
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user