Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

85 行
1.9 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. #jinja2: lstrip_blocks: "True"
  6. {% if matrix_coturn_authentication_method == 'auth-secret' %}
  7. use-auth-secret
  8. static-auth-secret={{ matrix_coturn_turn_static_auth_secret }}
  9. userdb=/var/tmp/turnserver.db
  10. {% endif %}
  11. {% if matrix_coturn_authentication_method == 'lt-cred-mech' %}
  12. lt-cred-mech
  13. user={{ matrix_coturn_lt_cred_mech_username }}:{{ matrix_coturn_lt_cred_mech_password }}
  14. {% endif %}
  15. realm=turn.{{ matrix_server_fqn_matrix }}
  16. min-port={{ matrix_coturn_turn_udp_min_port }}
  17. max-port={{ matrix_coturn_turn_udp_max_port }}
  18. {% for ip in matrix_coturn_turn_external_ip_addresses %}
  19. external-ip={{ ip }}
  20. {% endfor %}
  21. log-file=stdout
  22. pidfile=/var/tmp/turnserver.pid
  23. no-cli
  24. {% if matrix_coturn_tls_enabled %}
  25. cert={{ matrix_coturn_tls_cert_path }}
  26. pkey={{ matrix_coturn_tls_key_path }}
  27. {% if not matrix_coturn_tls_v1_enabled %}
  28. no-tlsv1
  29. {% endif %}
  30. {% if not matrix_coturn_tls_v1_1_enabled %}
  31. no-tlsv1_1
  32. {% endif %}
  33. {% else %}
  34. no-tls
  35. no-dtls
  36. {% endif %}
  37. prod
  38. {% if matrix_coturn_no_tcp_relay_enabled %}
  39. no-tcp-relay
  40. {% endif %}
  41. {% if matrix_coturn_no_rfc5780_enabled %}
  42. no-rfc5780
  43. {% endif %}
  44. {% if matrix_coturn_no_stun_backward_compatibility_enabled %}
  45. no-stun-backward-compatibility
  46. {% endif %}
  47. {% if matrix_coturn_response_origin_only_with_rfc5780_enabled %}
  48. response-origin-only-with-rfc5780
  49. {% endif %}
  50. {% if matrix_coturn_user_quota != None %}
  51. user-quota={{ matrix_coturn_user_quota }}
  52. {% endif %}
  53. {% if matrix_coturn_total_quota != None %}
  54. total-quota={{ matrix_coturn_total_quota }}
  55. {% endif %}
  56. {% if matrix_coturn_no_multicast_peers_enabled %}
  57. no-multicast-peers
  58. {% endif %}
  59. {% for ip_range in matrix_coturn_denied_peer_ips %}
  60. denied-peer-ip={{ ip_range }}
  61. {% endfor %}
  62. {% for ip_range in matrix_coturn_allowed_peer_ips %}
  63. allowed-peer-ip={{ ip_range }}
  64. {% endfor %}
  65. {{ matrix_coturn_additional_configuration }}