mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-06-28 14:25:46 +00:00
* feat: Add client config route to Caddy Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> * fix: Remove gifbox, will be pulled from backend in future Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> * fix: Move JSON to root folder, drop extension from route Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> --------- Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
63 lines
1.1 KiB
Caddyfile
63 lines
1.1 KiB
Caddyfile
{$HOSTNAME} {
|
|
route /.well-known/stoat {
|
|
uri strip_prefix /.well-known/stoat
|
|
header {
|
|
Access-Control-Allow-Origin *
|
|
}
|
|
file_server {
|
|
root /stoat.json
|
|
}
|
|
}
|
|
|
|
route /api* {
|
|
uri strip_prefix /api
|
|
reverse_proxy http://api:14702 {
|
|
header_down Location "^/" "/api/"
|
|
}
|
|
}
|
|
|
|
route /ws {
|
|
uri strip_prefix /ws
|
|
reverse_proxy http://events:14703 {
|
|
header_down Location "^/" "/ws/"
|
|
}
|
|
}
|
|
|
|
route /autumn* {
|
|
uri strip_prefix /autumn
|
|
reverse_proxy http://autumn:14704 {
|
|
header_down Location "^/" "/autumn/"
|
|
}
|
|
}
|
|
|
|
route /january* {
|
|
uri strip_prefix /january
|
|
reverse_proxy http://january:14705 {
|
|
header_down Location "^/" "/january/"
|
|
}
|
|
}
|
|
|
|
route /gifbox* {
|
|
uri strip_prefix /gifbox
|
|
reverse_proxy http://gifbox:14706 {
|
|
header_down Location "^/" "/gifbox/"
|
|
}
|
|
}
|
|
|
|
route /livekit* {
|
|
uri strip_prefix /livekit
|
|
reverse_proxy http://livekit:7880 {
|
|
header_down Location "^/" "/livekit/"
|
|
}
|
|
}
|
|
|
|
route /ingress* {
|
|
uri strip_prefix /ingress
|
|
reverse_proxy http://voice-ingress:8500 {
|
|
header_down Location "^/" "/ingress/"
|
|
}
|
|
}
|
|
|
|
reverse_proxy http://web:5000
|
|
}
|