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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user