config: add ICEServers []string to DataWebRTC for issue #23
Some checks failed
ci / race tests (push) Blocked by required conditions
ci / WebRTC smoke (5-viewer fanout) (push) Blocked by required conditions
ci / WebRTC latency p95 gate (push) Blocked by required conditions
ci / vet + build (push) Has been cancelled

This commit is contained in:
Zac Gaetano 2026-05-10 21:12:45 -04:00
parent 278ebaa087
commit 9aaba9bdf6

View file

@ -343,4 +343,9 @@ type DataWebRTC struct {
PublicIP string `json:"public_ip"`
NAT1To1IPs []string `json:"nat_1_to_1_ips"`
UDPMuxPort int `json:"udp_mux_port" format:"int"`
// ICEServers is an optional operator-supplied list of STUN/TURN URIs
// (e.g. "stun:stun.example.com:3478", "turn:user:pass@turn.example.com").
// When non-empty it overrides the built-in default STUN servers used by
// the WebRTC subsystem. Exposed via CORE_WEBRTC_ICE_SERVERS (comma-separated).
ICEServers []string `json:"ice_servers"`
}