Browse Source

Add reverse proxy configuration for Matrix RTC

Added configuration instructions for reverse proxy with nginx for LiveKit Server.
pull/5086/head
thigg 2 months ago
committed by GitHub
parent
commit
caa909eed6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      docs/configuring-playbook-matrix-rtc.md

+ 23
- 0
docs/configuring-playbook-matrix-rtc.md View File

@@ -38,6 +38,29 @@ matrix_rtc_enabled: true

In addition to the HTTP/HTTPS ports (which you've already exposed as per the [prerequisites](prerequisites.md) document), you'll also need to open ports required by [LiveKit Server](configuring-playbook-livekit-server.md) as described in its own [Adjusting firewall rules](configuring-playbook-livekit-server.md#adjusting-firewall-rules) section.

### Behind a reverse proxy
If you are behind an additional reverse proxy like nginx you also need to adjust it for livekit:
```yaml
location /livekit-server/ {
proxy_pass http://localhost:81/livekit-server/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;

# Long timeouts for persistent WebSocket connections
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
proxy_buffering off;

access_log /var/log/nginx/matrix.access.log;
error_log /var/log/nginx/matrix.error.log;
}
```

## Installing

After configuring the playbook and potentially [adjusting your DNS records](#adjusting-dns-records) and [adjusting firewall rules](#adjusting-firewall-rules), run the playbook with [playbook tags](playbook-tags.md) as below:


Loading…
Cancel
Save