mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-01 02:52:49 +08:00
Route page and signaling traffic through Cloudflare Tunnel while sending WebRTC media over direct UDP, with optional TURN REST as a fallback. When WebRTC was already offered and then fails, stay in the current session, automatically resume compatibility audio, and keep a Reconnect WebRTC control. A reconnect retries WebRTC only, leaves compatibility running until it succeeds, and stays on compatibility if it fails again. Database schema 14 adds nullable voice override columns and is a one-way boundary: older binaries reject this database. This change is for review, not a production rollout.
41 lines
1.5 KiB
YAML
41 lines
1.5 KiB
YAML
services:
|
|
coturn:
|
|
image: coturn/coturn:4.6.3
|
|
container_name: webspeak-coturn
|
|
restart: unless-stopped
|
|
# Host networking keeps the configured relay UDP range and external-ip
|
|
# mapping predictable. On Linux, replace it with explicit ports only if
|
|
# your platform does not support host mode.
|
|
network_mode: host
|
|
environment:
|
|
TURN_SECRET: ${TURN_SECRET:?set TURN_SECRET in .env}
|
|
TURN_REALM: ${TURN_REALM:-webspeak}
|
|
TURN_EXTERNAL_IP: ${TURN_EXTERNAL_IP:?set TURN_EXTERNAL_IP in .env}
|
|
TURN_MIN_PORT: ${TURN_MIN_PORT:-49160}
|
|
TURN_MAX_PORT: ${TURN_MAX_PORT:-49200}
|
|
command:
|
|
- -n
|
|
- --log-file=stdout
|
|
- --no-cli
|
|
- --fingerprint
|
|
- --lt-cred-mech
|
|
- --use-auth-secret
|
|
- --static-auth-secret=${TURN_SECRET}
|
|
- --realm=${TURN_REALM}
|
|
- --external-ip=${TURN_EXTERNAL_IP}
|
|
- --listening-port=3478
|
|
- --min-port=${TURN_MIN_PORT}
|
|
- --max-port=${TURN_MAX_PORT}
|
|
- --stale-nonce=600
|
|
- --no-multicast-peers
|
|
- --denied-peer-ip=0.0.0.0-0.255.255.255
|
|
- --denied-peer-ip=10.0.0.0-10.255.255.255
|
|
- --denied-peer-ip=127.0.0.0-127.255.255.255
|
|
- --denied-peer-ip=169.254.0.0-169.254.255.255
|
|
- --denied-peer-ip=172.16.0.0-172.31.255.255
|
|
- --denied-peer-ip=192.168.0.0-192.168.255.255
|
|
- --denied-peer-ip=::1
|
|
- --denied-peer-ip=fc00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
|
|
- --denied-peer-ip=fe80::-febf:ffff:ffff:ffff:ffff:ffff:ffff:ffff
|
|
- --denied-peer-ip=ff00::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
|