docs(livekit): add nginx proxy example

Signed-off-by: rooot <hey@rooot.gay>
This commit is contained in:
rooot 2026-02-16 04:32:03 +01:00
parent cacd8681d1
commit c2ea303363
No known key found for this signature in database
GPG key ID: 3582D7B034FF964F

View file

@ -146,6 +146,38 @@ By default, all routes should be forwarded to Livekit with the exception of the
```
</details>
<details>
<summary>Example nginx config</summary>
```
server {
server_name matrix-rtc.example.com;
# for lk-jwt-service
location ~ ^/(sfu/get|healthz|get_token) {
proxy_pass http://127.0.0.1:8081$request_uri;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_buffering off;
}
# for livekit
location / {
proxy_pass http://127.0.0.1:7880$request_uri;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_buffering off;
# websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
```
</details>
<details>
<summary>Example traefik router</summary>
```