fix: add url prefix back on when provided a redirect location starting with /

Definitely required for autumn, as /autumn/attachments/🆔 will redirect to /attachments/🆔/:filename:
But we want the browser to redirect to /autumn/attachments/🆔/:filename:

Speculatively added for the other services
pull/150/head
Kyle Kienapfel 5 days ago
parent 99b0d743af
commit c0e5bddb03

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

Loading…
Cancel
Save