mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-23 04:55:46 +00:00
410a915a8a
This paves the way for installing other roles into `roles/galaxy` using `ansible-galaxy`, similar to how it's done in: - https://github.com/spantaleev/gitea-docker-ansible-deploy - https://github.com/spantaleev/nextcloud-docker-ansible-deploy In the near future, we'll be removing a lot of the shared role code from here and using upstream roles for it. Some of the core `matrix-*` roles have already been extracted out into other reusable roles: - https://github.com/devture/com.devture.ansible.role.postgres - https://github.com/devture/com.devture.ansible.role.systemd_docker_base - https://github.com/devture/com.devture.ansible.role.timesync - https://github.com/devture/com.devture.ansible.role.vars_preserver - https://github.com/devture/com.devture.ansible.role.playbook_runtime_messages - https://github.com/devture/com.devture.ansible.role.playbook_help We just need to migrate to those.
48 lines
1.1 KiB
Django/Jinja
48 lines
1.1 KiB
Django/Jinja
#jinja2: lstrip_blocks: "True"
|
|
use-auth-secret
|
|
static-auth-secret={{ matrix_coturn_turn_static_auth_secret }}
|
|
realm=turn.{{ matrix_server_fqn_matrix }}
|
|
|
|
min-port={{ matrix_coturn_turn_udp_min_port }}
|
|
max-port={{ matrix_coturn_turn_udp_max_port }}
|
|
{% for ip in matrix_coturn_turn_external_ip_addresses|select('ne', '') %}
|
|
external-ip={{ ip }}
|
|
{% endfor %}
|
|
|
|
log-file=stdout
|
|
pidfile=/var/tmp/turnserver.pid
|
|
userdb=/var/tmp/turnserver.db
|
|
|
|
no-cli
|
|
|
|
{% if matrix_coturn_tls_enabled %}
|
|
cert={{ matrix_coturn_tls_cert_path }}
|
|
pkey={{ matrix_coturn_tls_key_path }}
|
|
{% if not matrix_coturn_tls_v1_enabled %}
|
|
no-tlsv1
|
|
{% endif %}
|
|
{% if not matrix_coturn_tls_v1_1_enabled %}
|
|
no-tlsv1_1
|
|
{% endif %}
|
|
{% else %}
|
|
no-tls
|
|
no-dtls
|
|
{% endif %}
|
|
|
|
prod
|
|
no-tcp-relay
|
|
|
|
{% if matrix_coturn_user_quota != None %}
|
|
user-quota={{ matrix_coturn_user_quota }}
|
|
{% endif %}
|
|
{% if matrix_coturn_total_quota != None %}
|
|
total-quota={{ matrix_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 %}
|