38 lines
900 B
Django/Jinja
38 lines
900 B
Django/Jinja
#jinja2: lstrip_blocks: "True"
|
|
|
|
# Adapted from
|
|
# https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/roles/matrix-coturn/templates/turnserver.conf.j2
|
|
# in Jan. 2021
|
|
|
|
use-auth-secret
|
|
static-auth-secret={{ site.coturn.static_auth_secret }}
|
|
realm=turn.{{ site.url }}
|
|
|
|
min-port={{ site.coturn.min_port }}
|
|
max-port={{ site.coturn.min_port }}
|
|
external-ip={{ site.coturn.external_ip }}
|
|
|
|
log-file=stdout
|
|
pidfile=/var/tmp/turnserver.pid
|
|
userdb=/var/tmp/turnserver.db
|
|
|
|
no-cli
|
|
no-tls
|
|
no-dtls
|
|
|
|
prod
|
|
no-tcp-relay
|
|
|
|
{% if site.coturn.user_quota != None %}
|
|
user-quota={{ site.coturn.user_quota }}
|
|
{% endif %}
|
|
{% if site.coturn.total_quota != None %}
|
|
total-quota={{ site.coturn.total_quota }}
|
|
{% endif %}
|
|
|
|
{% 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 %} |