Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

48 lines
1.1 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. use-auth-secret
  3. static-auth-secret={{ matrix_coturn_turn_static_auth_secret }}
  4. realm=turn.{{ matrix_server_fqn_matrix }}
  5. min-port={{ matrix_coturn_turn_udp_min_port }}
  6. max-port={{ matrix_coturn_turn_udp_max_port }}
  7. {% for ip in matrix_coturn_turn_external_ip_addresses|select('ne', '') %}
  8. external-ip={{ ip }}
  9. {% endfor %}
  10. log-file=stdout
  11. pidfile=/var/tmp/turnserver.pid
  12. userdb=/var/tmp/turnserver.db
  13. no-cli
  14. {% if matrix_coturn_tls_enabled %}
  15. cert={{ matrix_coturn_tls_cert_path }}
  16. pkey={{ matrix_coturn_tls_key_path }}
  17. {% if not matrix_coturn_tls_v1_enabled %}
  18. no-tlsv1
  19. {% endif %}
  20. {% if not matrix_coturn_tls_v1_1_enabled %}
  21. no-tlsv1_1
  22. {% endif %}
  23. {% else %}
  24. no-tls
  25. no-dtls
  26. {% endif %}
  27. prod
  28. no-tcp-relay
  29. {% if matrix_coturn_user_quota != None %}
  30. user-quota={{ matrix_coturn_user_quota }}
  31. {% endif %}
  32. {% if matrix_coturn_total_quota != None %}
  33. total-quota={{ matrix_coturn_total_quota }}
  34. {% endif %}
  35. {% for ip_range in matrix_coturn_denied_peer_ips %}
  36. denied-peer-ip={{ ip_range }}
  37. {% endfor %}
  38. {% for ip_range in matrix_coturn_allowed_peer_ips %}
  39. allowed-peer-ip={{ ip_range }}
  40. {% endfor %}