fix: have caddy apply url prefix to relative redirects from services

Definitely required for autumn, as an example /autumn/attachments/🆔 will redirect to /attachments/🆔/:filename:
But since we are self-hosting, the requester (client) actually needs to be redirected to /autumn/attachments/🆔/:filename:

Speculatively added for the other services

Signed-off-by: Kyle Kienapfel <Docteh@users.noreply.github.com>
pull/150/head
Kyle Kienapfel 7 months ago
parent 196900a6dd
commit fa230cba4e

@ -1,22 +1,30 @@
{$HOSTNAME} {
route /api* {
uri strip_prefix /api
reverse_proxy http://api:14702
reverse_proxy http://api:14702 {
header_down Location "^/" "/api/"
}
}
route /ws {
uri strip_prefix /ws
reverse_proxy http://events:14703
reverse_proxy http://events:14703 {
header_down Location "^/" "/ws/"
}
}
route /autumn* {
uri strip_prefix /autumn
reverse_proxy http://autumn:14704
reverse_proxy http://autumn:14704 {
header_down Location "^/" "/autumn/"
}
}
route /january* {
uri strip_prefix /january
reverse_proxy http://january:14705
reverse_proxy http://january:14705 {
header_down Location "^/" "/january/"
}
}
reverse_proxy http://web:5000

Loading…
Cancel
Save