docs(livekit): Link file for nginx conf and do UI codeblock folding

This commit is contained in:
stratself authored and Ellis Git committed 2026-08-15 15:08:18 +00:00
1 parent 65b32b8610
commit 3c07f46451
4 files changed
+39 -30

No files matched your search

+11 -28
View File
@@ -167,9 +167,15 @@ livekit.example.com {
</Tab>
<Tab label="Caddy (via Docker labels)">
```yaml file="../public/calls/livekit.docker-compose.with-caddy-labels.yml"
This setup assumes all containers share the same bridge network.
```yaml title="docker-compose.yml" fold height="200" file="../public/calls/livekit.docker-compose.with-caddy-labels.yml"
```
([view raw](/calls/livekit.docker-compose.with-caddy-labels.yml))
</Tab>
<Tab label="Traefik (via Docker labels)">
@@ -185,37 +191,14 @@ traefik.http.routers.livekit-jwt.rule=Host(`livekit.example.com`) && (PathPrefix
</Tab>
<Tab label="nginx">
```ini
server {
server_name livekit.example.com;
```nginx title="nginx.conf" file="../public/calls/livekit.nginx.conf"
# 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;
}
}
```
([view raw](/calls/livekit.nginx.conf))
Note: To enable WebSockets proxying functionality, include the following snippet somewhere outside your server block:
```
```nginx
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
@@ -1,4 +1,3 @@
# This setup assumes all containers share the same bridge network
services:
lk-jwt-service:
image: ghcr.io/element-hq/lk-jwt-service:latest
+26
View File
@@ -0,0 +1,26 @@
server {
server_name livekit.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;
}
}
+2 -1
View File
@@ -25,7 +25,8 @@ export default defineConfig({
'/advanced/delegated.docker-compose.with-caddy-labels.yml',
'/advanced/delegated.docker-compose.for-traefik.yml',
'/advanced/delegated.docker-compose.with-traefik.yml',
'/calls/livekit.docker-compose.with-caddy-labels.yml'
'/calls/livekit.docker-compose.with-caddy-labels.yml',
'/calls/livekit.nginx.conf'
]
},
},