[Self-hosted] Add TURN configuration for LiveKit WebRTC if using cloudflare tunnel

(#659) Bug Needs triage self-hosting voice

What needs fixing?

The wiki that explains self hosting doesn't explain what to do to configure a TURN server. Adding it will definitely make life easier to any users that uses cloudflare tunneling.

Suggested change

Add a section for TURN configuration in case the user has configured cloudflare tunnel.

1 comment

Sign in with Fluxer to comment and vote.
Comment by @adavi1995
RexSystem 1 vote edited originally by @adavi1995 on GitHub
port: 7880
log_level: info

rtc:
  tcp_port: 7881
  udp_port: 7882
  port_range_start: 55153
  port_range_end: 60000
  use_external_ip: true
  stun_servers:
    - your.stunserver.com:3478
    # I'm not actually using any Google stun servers. I'm using my own stun server
    - stun4.l.google.com:19302
    - stun.cloudflare.com:3478
    - stun.l.google.com:19302
    - stun1.l.google.com:19302
  turn_servers:
    - host: turn.domain.com
      # default turn port is 3478. can use 5349
      port: 3478
      # udp with 3478 or tls with 5349
      protocol: udp
      # if you have credentials setup for the connection (I do)
      username: "turn_username"
      credential: "turn_password"

webhook:
  api_key: fluxer
  urls:
    - http://api:8080/webhooks/livekit
Deleted comment
Removed by moderator Rex: Removed a general status note that was posted on many GitHub threads. It no longer applies here.