billowy-glass-73660
09/25/2025, 9:46 PMtall-airline-16756
09/25/2025, 9:46 PMtall-airline-16756
09/25/2025, 9:47 PMbillowy-glass-73660
09/25/2025, 9:58 PMtall-airline-16756
09/25/2025, 9:58 PMturn.tls_port to 443 in your livekit.yml file. This helps make sure that TURN/TLS traffic is correctly communicated to your clients and can smoothly get through any restrictive firewalls. If you need any help with this, feel free to ask—I'm here to support you!
Sources: Deploying LiveKit | LiveKit Docs | Deploy to a VM | LiveKit Docs | Ports and firewall | LiveKit Docs | pkg/config/config.gobillowy-glass-73660
09/25/2025, 9:59 PMtall-airline-16756
09/25/2025, 9:59 PMexternal_tls setting in livekit.yml comes into play when TLS termination is handled outside of LiveKit, like by a load balancer working at Layer 4 (L4). When you set this to true, here’s what happens:
• LiveKit expects unencrypted traffic on the specified tls_port, since the TLS encryption and decryption are taken care of externally.
• LiveKit will still advertise the tls_port as a TURN/TLS candidate to clients, so it looks like secure TLS traffic from their perspective.
• You won’t need to provide certificate files (cert_file and key_file) in LiveKit’s configuration because TLS is being handled elsewhere.
This setup can be really helpful, especially in environments where firewalls only allow standard HTTPS traffic (like over port 443). In these cases, TURN/TLS traffic will appear as regular HTTPS to the firewalls, making things smoother for you.
Sources: pkg/config/config.go | Deploying LiveKit | LiveKit Docs | livekit-server/templates/NOTES.txtbillowy-glass-73660
09/25/2025, 10:02 PMtall-airline-16756
09/25/2025, 10:03 PMcaddy.yaml set to upstream dial to myip:5349, which is great! To make sure everything works smoothly, you'll want to set turn.tls_port in your livekit.yml to 5349. This way, Caddy, which takes care of TLS termination, can properly forward the decrypted traffic to your LiveKit server on the right port. If you have any questions or need a hand with this, feel free to ask—I'm here to help!
Sources: Deploying LiveKit | LiveKit Docs | Ports and firewall | LiveKit Docs