mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-03-03 02:27:01 +00:00
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:
16
Caddyfile
16
Caddyfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user