updated to allow voice chat

This commit is contained in:
2026-03-19 22:05:03 -06:00
parent 362309a51d
commit 95778fc407
5 changed files with 93 additions and 1 deletions

View File

@@ -57,4 +57,37 @@ server {
location /admin {
return 301 https://matrix-admin.example.com; # or proxy to a UI like SynapseAdmin
}
}
#--- Coturn changes --- #
# TURN over TLS (port 443) — proxied to Coturn's 5349
# Only needed if you want TURN on 443 (avoids firewall issues)
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream coturn_tls {
server 127.0.0.1:5349;
}
server {
listen 443 ssl http2;
server_name {{ matrix_domain }};
# ... [existing TLS config] ...
# TURN over TLS (for UDP/TCP fallback on port 443)
location /turn {
proxy_pass https://coturn_tls;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_read_timeout 86400;
}
# Or simpler: proxy UDP via a dedicated TCP tunnel (advanced)
# For most cases, just expose 3478/5349 directly → no Nginx needed!
}