mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 02:38:10 +02:00
- Split internal/external Coturn for BBB and Nextcloud - Added dedicated relay port ranges per app - Updated env and compose overrides for coturn - Ensure coturn role is loaded conditionally - Standardize credential/env passing for coturn @See https://chatgpt.com/share/68d6f376-4878-800f-b4f7-62822caa49ea
42 lines
1.5 KiB
Django/Jinja
42 lines
1.5 KiB
Django/Jinja
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
|
|
|
coturn:
|
|
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
|
image: {{ COTURN_IMAGE }}:{{ COTURN_VERSION }}
|
|
container_name: {{ COTURN_VOLUME }}
|
|
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
|
ports:
|
|
- "{{ COTURN_TURN_PORT }}:{{ COTURN_TURN_PORT }}/udp"
|
|
- "{{ COTURN_TURN_PORT }}:{{ COTURN_TURN_PORT }}/tcp"
|
|
- "{{ COTURN_STUN_PORT }}:{{ COTURN_STUN_PORT }}/tcp"
|
|
- "{{ COTURN_STUN_PORT }}:{{ COTURN_STUN_PORT }}/udp"
|
|
- "{{ COTURN_RELAY_PORT_RANGE }}/udp"
|
|
- "{{ COTURN_TLS_CERT_PATH }}:{{ COTURN_TLS_CERT_PATH }}:ro"
|
|
- "{{ COTURN_TLS_KEY_PATH }}:{{ COTURN_TLS_KEY_PATH }}:ro"
|
|
command: >
|
|
--use-auth-secret
|
|
--static-auth-secret=${ COTURN_STATIC_AUTH_SECRET }
|
|
--lt-cred-mech
|
|
--user=${ COTURN_USER_NAME }:${ COTURN_USER_PASSWORD }
|
|
--log-file=stdout
|
|
--external-ip={{ networks.internet.ip4 }}
|
|
{% if networks.internet.ip6|default('') %}
|
|
--external-ip={{ networks.internet.ip6 }}
|
|
{% endif %}
|
|
--realm=${ COTURN_REALM }
|
|
--fingerprint
|
|
--total-quota=100
|
|
--stale-nonce
|
|
--no-multicast-peers
|
|
--no-cli
|
|
--no-tcp-relay
|
|
--min-port={{ COTURN_RELAY_PORT_START }}
|
|
--max-port={{ COTURN_RELAY_PORT_END }}
|
|
--cert={{ COTURN_TLS_CERT_PATH }}
|
|
--pkey={{ COTURN_TLS_KEY_PATH }}
|
|
--cipher-list=DEFAULT
|
|
--dh2066
|
|
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
|
|
|
{% include 'roles/docker-compose/templates/networks.yml.j2' %}
|