Add Matrix homeserver with MatrixRTC calling support

- Synapse + PostgreSQL + coturn + LiveKit + lk-jwt-service
- Caddy entries for mtx.alogins.net, lk.alogins.net, lkjwt.alogins.net
- well-known endpoints for Matrix client/server discovery and RTC transport
- Users: admin, elizaveta, aleksandra

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alvis
2026-03-15 14:12:13 +00:00
parent 002f9863b0
commit e04f9059ae
7 changed files with 246 additions and 0 deletions

View File

@@ -89,6 +89,33 @@ vw.alogins.net {
reverse_proxy localhost:8041
}
mtx.alogins.net {
handle /.well-known/matrix/client {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"m.homeserver":{"base_url":"https://mtx.alogins.net"},"org.matrix.msc4143.rtc_foci":[{"type":"livekit","livekit_service_url":"https://lkjwt.alogins.net"}]}`
}
handle /.well-known/matrix/server {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"m.server":"mtx.alogins.net:443"}`
}
handle /_matrix/client/unstable/org.matrix.msc4143/rtc/transports {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"foci":[{"type":"livekit","livekit_service_url":"https://lkjwt.alogins.net"}]}`
}
reverse_proxy localhost:8008
}
lkjwt.alogins.net {
reverse_proxy localhost:8009
}
lk.alogins.net {
reverse_proxy localhost:7880
}
localhost:8042 {
reverse_proxy localhost:8041
tls internal