web: Added P2P_STUN_SERVERS environment variable (#1990)

pull/2001/head
Joshua Chia 4 weeks ago committed by GitHub
parent 02499f8483
commit 82e98d2274
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      docker-compose.yml
  2. 4
      web/rootfs/defaults/settings-config.js

@ -133,6 +133,7 @@ services:
- PREFERRED_LANGUAGE
- PUBLIC_URL
- P2P_PREFERRED_CODEC
- P2P_STUN_SERVERS
- RESOLUTION
- RESOLUTION_MIN
- RESOLUTION_WIDTH

@ -137,6 +137,10 @@ config.p2p = {
mobileCodecPreferenceOrder: {{ $CODEC_ORDER_P2P_MOBILE }}
};
{{ if .Env.P2P_STUN_SERVERS -}}
config.p2p.stunServers = '{{ .Env.P2P_STUN_SERVERS }}'.split(',').map(url => ({ urls: 'stun:' + url }));
{{ end -}}
// Breakout Rooms
//

Loading…
Cancel
Save