fix: have caddy apply url prefix to relative redirects from services (#150)

Co-authored-by: Kyle Kienapfel <Docteh@users.noreply.github.com>
This commit is contained in:
Kyle Kienapfel
2025-07-18 03:04:39 -07:00
committed by GitHub
parent d8d9721a16
commit db51161530

View File

@@ -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