50-stun-turn.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include_config_file:
  2. # ./macro.yml
  3. listen:
  4. -
  5. port: 3478
  6. transport: udp
  7. module: ejabberd_stun
  8. use_turn: true
  9. turn_min_port: 49152
  10. turn_max_port: 65535
  11. ## The server's public IPv4 address:
  12. turn_ipv4_address: IP_ADDRESS
  13. -
  14. port: 5349
  15. transport: tcp
  16. module: ejabberd_stun
  17. use_turn: true
  18. tls: true
  19. turn_min_port: 49152
  20. turn_max_port: 65535
  21. # ip: IP_ADDRESS
  22. turn_ipv4_address: IP_ADDRESS
  23. modules:
  24. mod_stun_disco:
  25. credentials_lifetime: 12h
  26. services:
  27. -
  28. host: IP_ADDRESS
  29. port: 3478
  30. type: stun
  31. transport: udp
  32. restricted: false
  33. -
  34. host: IP_ADDRESS
  35. port: 3478
  36. type: turn
  37. transport: udp
  38. restricted: true
  39. -
  40. host: HOSTNAME
  41. port: 5349
  42. type: stuns
  43. transport: tcp
  44. restricted: false
  45. -
  46. host: HOSTNAME
  47. port: 5349
  48. type: turns
  49. transport: tcp
  50. restricted: true