diff --git a/docs/calls/livekit.mdx b/docs/calls/livekit.mdx index 8b680382..6f41a03a 100644 --- a/docs/calls/livekit.mdx +++ b/docs/calls/livekit.mdx @@ -146,6 +146,38 @@ By default, all routes should be forwarded to Livekit with the exception of the ``` +
+ Example nginx config + ``` + 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; + } + } + ``` +
+
Example traefik router ```