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

(#659) Bug Needs triage self-hosting voice

Thread

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