Skip to content

Commit 69776ba

Browse files
committed
add .well-known section including a note that this is not effective for the local dev environment
1 parent bf4596d commit 69776ba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

backend/tls_localhost_nginx.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ server {
99
ssl_certificate /root/ssl/cert.pem;
1010
ssl_certificate_key /root/ssl/key.pem;
1111

12+
# well-known config adding rtc_foci backend
13+
# Note well-known is currently not effective due to:
14+
# https://spec.matrix.org/v1.12/client-server-api/#well-known-uri the spec
15+
# says it must be at https://$server_name/... (implied port 443) Hence, we
16+
# currently rely for local development environment on depricated config.json
17+
# setting for livekit_service_url
18+
location /.well-known/matrix/client {
19+
return 200 '{"m.homeserver": {"base_url": "http://synapse.localhost:8008"}, "org.matrix.msc4143.rtc_foci": [{"type": "livekit", "livekit_service_url": "http://localhost:8080"}]}';
20+
default_type application/json;
21+
add_header Access-Control-Allow-Origin *;
22+
}
23+
1224
# Reverse proxy for Matrix Synapse Homeserver
1325
# This is also required for development environment.
1426
# Reason: the lk-jwt-service uses the federation API for the openid token

0 commit comments

Comments
 (0)