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
30 lines
940 B
Django/Jinja
30 lines
940 B
Django/Jinja
services:
|
|
webrtc-sfu:
|
|
environment:
|
|
MS_WORKERS: "1"
|
|
MS_ENABLE_IPV6: "false"
|
|
MS_WEBRTC_LISTEN_IPS: >-
|
|
[{"ip":"0.0.0.0","announcedIp":"${EXTERNAL_IPv4}"}]
|
|
coturn:
|
|
ports:
|
|
- "{{ BBB_TURN_PORT }}:{{ BBB_TURN_PORT }}/udp"
|
|
- "{{ BBB_TURN_PORT }}:{{ BBB_TURN_PORT }}/tcp"
|
|
- "{{ BBB_STUN_PORT }}:{{ BBB_STUN_PORT }}/udp"
|
|
- "{{ BBB_STUN_PORT }}:{{ BBB_STUN_PORT }}/tcp"
|
|
- "{{ BBB_RELAY_PORT_RANGE }}/udp"
|
|
command: >-
|
|
--use-auth-secret
|
|
--static-auth-secret=${TURN_SECRET}
|
|
--lt-cred-mech
|
|
--realm=${DOMAIN}
|
|
--fingerprint
|
|
--no-multicast-peers
|
|
--no-cli
|
|
--no-tcp-relay
|
|
--min-port={{ BBB_RELAY_PORT_START }}
|
|
--max-port={{ BBB_RELAY_PORT_END }}
|
|
--external-ip=${EXTERNAL_IPv4}
|
|
{% if BBB_IP6_ENABLED %}--external-ip=${EXTERNAL_IPv6}{% endif %}
|
|
--cert=${COTURN_TLS_CERT_PATH}
|
|
--pkey=${COTURN_TLS_KEY_PATH}
|