mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 10:48:10 +02:00
Refactor TURN/STUN config:
- Removed ?transport=udp from Nextcloud Talk TURN server definitions - Dropped --no-tcp-relay to allow TCP fallback - Removed invalid UDP mapping on TLS port - Introduced switch between REST secret auth and lt-cred-mech via COTURN_USER_AUTH_ENABLED - Added user_auth_enabled flag in coturn config for flexibility See: https://chatgpt.com/share/68d7d601-3558-800f-bc84-00d7e8fc3243
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
- "{{ COTURN_STUN_TURN_PORT }}:{{ COTURN_STUN_TURN_PORT }}/udp"
|
||||
- "{{ COTURN_STUN_TURN_PORT }}:{{ COTURN_STUN_TURN_PORT }}/tcp"
|
||||
- "{{ COTURN_STUN_TURN_PORT_TLS }}:{{ COTURN_STUN_TURN_PORT_TLS }}/tcp"
|
||||
- "{{ COTURN_STUN_TURN_PORT_TLS }}:{{ COTURN_STUN_TURN_PORT_TLS }}/udp"
|
||||
- "{{ COTURN_RELAY_PORT_RANGE }}/udp"
|
||||
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
||||
{% endif %}
|
||||
@@ -18,10 +17,13 @@
|
||||
- "{{ 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}"
|
||||
{% if COTURN_USER_AUTH_ENABLED | bool %}
|
||||
--lt-cred-mech
|
||||
--user="${COTURN_USER_NAME}:${COTURN_USER_PASSWORD}"
|
||||
{% else %}
|
||||
--use-auth-secret
|
||||
--static-auth-secret="${COTURN_STATIC_AUTH_SECRET}"
|
||||
{% endif %}
|
||||
--log-file=stdout
|
||||
--external-ip={{ networks.internet.ip4 }}
|
||||
{% if networks.internet.ip6|default('') %}
|
||||
@@ -33,7 +35,6 @@
|
||||
--stale-nonce
|
||||
--no-multicast-peers
|
||||
--no-cli
|
||||
--no-tcp-relay
|
||||
--listening-port={{ COTURN_STUN_TURN_PORT }}
|
||||
--tls-listening-port={{ COTURN_STUN_TURN_PORT_TLS }}
|
||||
--min-port={{ COTURN_RELAY_PORT_START }}
|
||||
|
Reference in New Issue
Block a user