updated to allow voice chat
This commit is contained in:
@@ -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!
|
||||
}
|
||||
Reference in New Issue
Block a user