From ea771bff0c557a3e8d56d405a9a93ed72b63cc48 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sat, 29 Aug 2026 00:15:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(devx)=20configure=20a=20TURN=20ser?= =?UTF-8?q?ver=20on=20the=20local=20LiveKit=20dev=20stack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wire a TURN server into the local LiveKit server used by the dev stack, so ICE negotiation has more candidate types available during local testing. Makes it easier to reproduce connectivity scenarios that would otherwise only show up on stricter networks in production. --- compose.yml | 2 ++ docker/livekit/config/livekit-server.yaml | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/compose.yml b/compose.yml index 8e93a789..25a36051 100644 --- a/compose.yml +++ b/compose.yml @@ -213,6 +213,8 @@ services: - "7880:7880" - "7881:7881" - "7882:7882/udp" + - "3478:3478/udp" + - "30000-30100:30000-30100/udp" volumes: - ./docker/livekit/config/livekit-server.yaml:/config.yaml depends_on: diff --git a/docker/livekit/config/livekit-server.yaml b/docker/livekit/config/livekit-server.yaml index 13c25c6a..e3c77d69 100644 --- a/docker/livekit/config/livekit-server.yaml +++ b/docker/livekit/config/livekit-server.yaml @@ -8,3 +8,16 @@ webhook: api_key: devkey urls: - http://app-dev:8000/api/v1.0/rooms/webhooks-livekit/ + +turn: + enabled: true + domain: turn.127.0.0.1.nip.io + udp_port: 3478 + tls_port: 0 + external_tls: false + relay_range_start: 30000 + relay_range_end: 30100 + allow_restricted_peer_cidrs: + - 192.168.0.0/16 + - 172.16.0.0/12 +