mirror of
https://github.com/ThowZzy/synapse-elementcall-caddy-setup.git
synced 2025-06-07 09:57:01 +03:00
30 lines
894 B
Caddyfile
30 lines
894 B
Caddyfile
|
|
example.com, www.example.com {
|
|
#Headers & Well-known for Matrix & Element Call
|
|
header /.well-known/matrix/* Content-Type application/json
|
|
header /.well-known/matrix/* Access-Control-Allow-Origin *
|
|
respond /.well-known/matrix/server `{"m.server": "matrix.example.com:443"}`
|
|
respond /.well-known/matrix/client `{"m.homeserver": {"base_url": "https://matrix.example.com"}, "org.matrix.msc4143.rtc_foci": [{"type": "livekit", "livekit_service_url": "https://livekit.example.com"}]}`
|
|
}
|
|
|
|
matrix.example.com {
|
|
reverse_proxy localhost:8448
|
|
}
|
|
|
|
|
|
livekit.example.com {
|
|
#Route to jwt-service
|
|
route /sfu/get* {
|
|
reverse_proxy localhost:8451
|
|
}
|
|
|
|
#Route to jwt-service
|
|
route /healthz* {
|
|
reverse_proxy localhost:8451
|
|
}
|
|
|
|
#Route to livekit
|
|
route /* {
|
|
reverse_proxy localhost:7880
|
|
}
|
|
}
|