2019-05-07 21:23:35 +02:00
|
|
|
#jinja2: lstrip_blocks: "True"
|
2018-05-25 20:58:53 +02:00
|
|
|
use-auth-secret
|
|
|
|
static-auth-secret={{ matrix_coturn_turn_static_auth_secret }}
|
2019-02-28 11:51:09 +02:00
|
|
|
realm=turn.{{ matrix_server_fqn_matrix }}
|
2019-03-19 10:24:39 +02:00
|
|
|
|
2018-05-25 20:58:53 +02:00
|
|
|
min-port={{ matrix_coturn_turn_udp_min_port }}
|
|
|
|
max-port={{ matrix_coturn_turn_udp_max_port }}
|
2022-04-11 14:38:35 +02:00
|
|
|
{% for ip in matrix_coturn_turn_external_ip_addresses|select('ne', '') %}
|
2022-04-10 22:51:03 +02:00
|
|
|
external-ip={{ ip }}
|
|
|
|
{% endfor %}
|
2019-03-19 10:24:39 +02:00
|
|
|
|
2018-05-25 20:58:53 +02:00
|
|
|
log-file=stdout
|
|
|
|
pidfile=/var/tmp/turnserver.pid
|
|
|
|
userdb=/var/tmp/turnserver.db
|
2019-03-19 10:24:39 +02:00
|
|
|
|
2019-01-29 17:56:40 +02:00
|
|
|
no-cli
|
2019-03-19 10:24:39 +02:00
|
|
|
|
|
|
|
{% if matrix_coturn_tls_enabled %}
|
|
|
|
cert={{ matrix_coturn_tls_cert_path }}
|
|
|
|
pkey={{ matrix_coturn_tls_key_path }}
|
2021-04-16 08:29:32 +02:00
|
|
|
{% if not matrix_coturn_tls_v1_enabled %}
|
2021-04-15 15:55:23 +02:00
|
|
|
no-tlsv1
|
2021-04-16 08:29:32 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if not matrix_coturn_tls_v1_1_enabled %}
|
2021-04-15 15:55:23 +02:00
|
|
|
no-tlsv1_1
|
2021-04-16 08:29:32 +02:00
|
|
|
{% endif %}
|
2019-03-19 10:24:39 +02:00
|
|
|
{% else %}
|
2019-02-07 13:20:30 +02:00
|
|
|
no-tls
|
|
|
|
no-dtls
|
2019-03-19 10:24:39 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2019-01-29 17:56:40 +02:00
|
|
|
prod
|
2023-01-26 17:08:05 +02:00
|
|
|
|
|
|
|
{% if matrix_coturn_no_tcp_relay_enabled %}
|
2019-03-18 13:18:30 +02:00
|
|
|
no-tcp-relay
|
2023-01-26 17:08:05 +02:00
|
|
|
{% endif %}
|
2019-03-19 10:24:39 +02:00
|
|
|
|
2023-03-22 08:04:25 +02:00
|
|
|
{% if matrix_coturn_no_rfc5780_enabled %}
|
|
|
|
no-rfc5780
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if matrix_coturn_no_stun_backward_compatibility_enabled %}
|
|
|
|
no-stun-backward-compatibility
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if matrix_coturn_response_origin_only_with_rfc5780_enabled %}
|
|
|
|
response-origin-only-with-rfc5780
|
|
|
|
{% endif %}
|
|
|
|
|
2019-03-18 13:58:52 +02:00
|
|
|
{% if matrix_coturn_user_quota != None %}
|
2019-03-18 13:18:30 +02:00
|
|
|
user-quota={{ matrix_coturn_user_quota }}
|
|
|
|
{% endif %}
|
2019-03-18 13:58:52 +02:00
|
|
|
{% if matrix_coturn_total_quota != None %}
|
2019-03-18 13:18:30 +02:00
|
|
|
total-quota={{ matrix_coturn_total_quota }}
|
|
|
|
{% endif %}
|
2019-03-19 10:24:39 +02:00
|
|
|
|
2023-01-26 17:04:04 +02:00
|
|
|
{% if matrix_coturn_no_multicast_peers_enabled %}
|
|
|
|
no-multicast-peers
|
|
|
|
{% endif %}
|
|
|
|
|
2019-03-18 13:18:30 +02:00
|
|
|
{% for ip_range in matrix_coturn_denied_peer_ips %}
|
|
|
|
denied-peer-ip={{ ip_range }}
|
|
|
|
{% endfor %}
|
|
|
|
{% for ip_range in matrix_coturn_allowed_peer_ips %}
|
|
|
|
allowed-peer-ip={{ ip_range }}
|
|
|
|
{% endfor %}
|
2023-01-26 17:07:36 +02:00
|
|
|
|
|
|
|
{{ matrix_coturn_additional_configuration }}
|