web: Added P2P_STUN_SERVERS environment variable (#1990)

This commit is contained in:
Joshua Chia
2025-01-06 17:59:41 +08:00
committed by GitHub
parent 02499f8483
commit 82e98d2274
2 changed files with 5 additions and 0 deletions

View File

@@ -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
//