summaryrefslogtreecommitdiff
path: root/ejabberd/config.d/stun-turns.yml
blob: eeef73103f81e836adfb9ba367d8b11d0e3ddf37 (plain)
  1. # STUN/TURN services (insecure STUN + secure authenticated STUN/TURN)
  2. #
  3. # * TURN_IP must be the public IP of the listening port
  4. # * TURN relay requires authentication
  5. # * _tls proto (in DNS below) is nonstandard but maybe used in the wild
  6. # * stuns service (in DNS below) is legacy but maybe used in the wild
  7. #
  8. # Sample DNS entries:
  9. # @ IN NAPTR 10 0 "s" "RELAY:turn.tls" "" stun
  10. # stun IN A 192.0.2.1
  11. # _stun._udp IN SRV 0 0 3478 stun
  12. # _stun._tcp IN SRV 0 0 3478 stun
  13. # _stuns._tcp IN SRV 0 0 5349 stun
  14. # _stun._tls IN SRV 0 0 5349 stun
  15. # _turns._tcp IN SRV 0 0 5349 stun
  16. # _turn._tls IN SRV 0 0 5349 stun
  17. #
  18. # Depends: erlang-p1-stun
  19. listen:
  20. -
  21. port: 3478
  22. transport: udp
  23. module: ejabberd_stun
  24. use_turn: false
  25. -
  26. port: 3478
  27. module: ejabberd_stun
  28. use_turn: false
  29. -
  30. port: 5349
  31. module: ejabberd_stun
  32. tls: true
  33. certfile: 'CERT_PATH'
  34. auth_type: user
  35. turn_ip: 'TURN_IP'