feat: Make the TURN realm configurable via environment variable and ensure the viewer only reacts to the broadcaster's disconnection.

This commit is contained in:
2026-02-23 06:03:45 +01:00
parent 5ee1d39f62
commit 49e757a155
2 changed files with 11 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ services:
- BROADCASTER_PASSWORD=${BROADCASTER_PASSWORD}
- TURN_USER=${TURN_USER}
- TURN_PASSWORD=${TURN_PASSWORD}
- TURN_REALM=${TURN_REALM}
coturn:
image: coturn/coturn:latest
@@ -20,6 +21,6 @@ services:
--log-file=stdout
--min-port=49152
--max-port=49252
--realm=yourdomain.com
--realm=${TURN_REALM}
--user=${TURN_USER}:${TURN_PASSWORD}
--stale-nonce