chat.html: add proxy.uncloseai.com TURN to iceServers
with coturn live on proxy.uncloseai.com (proxy.unturf.com:22ccf93), ICE now offers a relay candidate path on every connection. peers behind symmetric NAT or strict firewalls fall back to TURN instead of failing the connection. static creds zebra:7a4a2b1c8d9e6f5a — public by design (a static page can't hide them); rate-limited by coturn quotas, not secrecy. google stun stays as fallback if our stun is unreachable.
This commit is contained in:
parent
202dd706f9
commit
0ff2c788d6
1 changed files with 12 additions and 1 deletions
|
|
@ -385,7 +385,18 @@ const PBKDF2_ITER = 600000;
|
|||
const LOOPBACK = new URLSearchParams(location.search).has('loopback');
|
||||
|
||||
const RTC_CONFIG = {
|
||||
iceServers: [{ urls: 'stun:stun.l.google.com:19302' }]
|
||||
iceServers: [
|
||||
/* our STUN/TURN on proxy.uncloseai.com — coturn deployed via
|
||||
* git.unturf.com/engineering/unturf/proxy.unturf.com.
|
||||
* credentials are public by design (baked into a static page);
|
||||
* rate-limited via coturn quotas, not via secrecy. */
|
||||
{ urls: ['stun:proxy.uncloseai.com:3478', 'stun:stun.l.google.com:19302'] },
|
||||
{
|
||||
urls: 'turn:proxy.uncloseai.com:3478',
|
||||
username: 'zebra',
|
||||
credential: '7a4a2b1c8d9e6f5a'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
/* ============================================================== *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue