-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
30 lines (24 loc) · 894 Bytes
/
Caddyfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
}
}