forked from kofal.net/stoatchat-self-hosted
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} {
|
{$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
|
||||||
|
|||||||
Reference in New Issue
Block a user