366f080128
- upgrade DOMPurify to patched release (fixes high-severity XSS GHSA-87xg-pxx2-7hvx) - upgrade esbuild build dependency; npm audit now reports 0 vulnerabilities - stop tracking config/ice-servers.js (TURN credentials); add example template - production logger no longer prints error context or info/debug output - bump version to 4.8.9 across header, manifest, README, init message - update SECURITY.md supported-release table to v4.8.x
22 lines
847 B
JavaScript
22 lines
847 B
JavaScript
// SecureBit.chat operator ICE server override — TEMPLATE.
|
|
//
|
|
// Copy this file to `config/ice-servers.js` and fill in your own TURN/STUN
|
|
// servers. The real `config/ice-servers.js` is git-ignored on purpose:
|
|
// TURN credentials are visible to every browser that loads the page, so they
|
|
// must never be committed to a public repository. Rotate them from your TURN
|
|
// provider dashboard if they are ever exposed.
|
|
//
|
|
// If this override is absent, the WebRTC manager falls back to the built-in
|
|
// public STUN defaults (standard mode only — no relay/IP protection).
|
|
window.SECUREBIT_ICE_SERVERS = [
|
|
{ urls: 'stun:stun.cloudflare.com:3478' },
|
|
{
|
|
urls: [
|
|
'turn:YOUR_TURN_HOST:3478?transport=udp',
|
|
'turn:YOUR_TURN_HOST:3478?transport=tcp'
|
|
],
|
|
username: 'YOUR_TURN_USERNAME',
|
|
credential: 'YOUR_TURN_CREDENTIAL'
|
|
}
|
|
];
|