gray-magician-34629
11/27/2025, 11:53 AMtall-airline-16756
11/27/2025, 11:53 AMtall-airline-16756
11/27/2025, 11:53 AMturn: section.
• Add turn_servers: entries to advertise your external TURN URIs and credentials:
turn_servers:
- uri: turn:your-turn-domain.com:3478
username: <username>
password: <password>
protocol: udp
- uri: turns:your-turn-domain.com:443
username: <username>
password: <password>
protocol: tcp
Option B — If you truly want to run the embedded TURN, keep turn: with enabled: true (this runs LiveKit's internal TURN; not needed when using coturn).
Notes:
• external_tls is not a valid field in livekit.yaml.
• Ensure your coturn is reachable and ports are open (UDP 3478, TCP/443 for TURN/TLS) and any load balancer/proxy forwards those ports.
If you want, share your full livekit.yaml (redact secrets) and your coturn URIs and I can show the exact lines to add.
Sources: Deploying LiveKit | LiveKit docs | Ports and firewall | LiveKit docs | LiveKit turn detector plugin | LiveKit docs | Configuring firewalls | LiveKit docs | Deploy to a VM | LiveKit docsgray-magician-34629
11/27/2025, 11:54 AMtall-airline-16756
11/27/2025, 11:55 AMturn_servers:
- uri: turn:turn.yourdomain.com:3478
protocol: udp
- uri: turns:turn.yourdomain.com:443
protocol: tcp
turn:
# leave embedded TURN disabled (omit enabled: true)
shared_secret: your-coturn-shared-secret
realm: yourdomain.com
On coturn, ensure you have:
• static-auth-secret=your-coturn-shared-secret
• realm=yourdomain.com
• ports open/forwarded (UDP 3478, TCP/443 for TURN/TLS)
LiveKit will issue time-limited usernames/passwords (HMAC) that coturn validates with the shared secret. If you want, paste a redacted snippet of your livekit.yaml and your coturn `static-auth-secret`/realm (redact secrets) and I’ll confirm exact lines.
Sources: Deploying LiveKit | LiveKit docsgray-magician-34629
11/27/2025, 12:01 PMtall-airline-16756
11/27/2025, 12:01 PM# after a value).
• realm: [yourdomain.com](http://yourdomain.com) is Markdown-style and invalid in YAML; use the plain domain string.
• The turn section should be nested correctly and you normally also advertise turn_servers: separately.
Valid example using shared secret (redact secrets when sharing):
# advertise external TURN servers to clients
turn_servers:
- uri: turn:turn.yourdomain.com:3478
protocol: udp
- uri: turns:turn.yourdomain.com:443
protocol: tcp
turn:
# do not enable the embedded TURN server here
shared_secret: your-coturn-shared-secret
realm: yourdomain.com
Replace values with your domain and secret. If you paste (redacted) lines from your livekit.yaml, I’ll check exact formatting.gray-magician-34629
11/27/2025, 12:05 PMtall-airline-16756
11/27/2025, 12:05 PMshared_secret isn't being accepted, please share the following (redact secrets):
1. The exact livekit.yaml snippet you're using (show the full turn: and any turn_servers: sections with indentation).
2. LiveKit version and deployment method (binary, Docker image tag, or Kubernetes/Helm).
3. Exact error or startup log lines you see when LiveKit loads the config.
4. Relevant coturn config lines (static-auth-secret, realm, ports) with the secret redacted.
5. How you supply the secret in your deployment (direct in YAML, Kubernetes Secret, env var, Helm values).
Once I have that I’ll confirm correct YAML placement and indentation and suggest the exact change to fix it.
Sources: Deploying LiveKit | LiveKit docsgray-magician-34629
11/27/2025, 12:06 PMtall-airline-16756
11/27/2025, 12:07 PMshared_secret issue I need three quick things:
1. Paste your turn: and turn_servers: sections from /etc/livekit/livekit.yaml (redact the secret).
2. The exact LiveKit image tag you’re using (you said `latest`; confirm or give the pinned tag).
3. Any LiveKit startup/log error lines you see after container start that mention TURN or config parsing.
With those I’ll correct the YAML (indentation/keys) and show the exact file you should mount in Docker Compose.