From 6e756b69395fd81d1347aa8dbc990dc072b4fd53 Mon Sep 17 00:00:00 2001 From: ancsemi Date: Thu, 9 Apr 2026 00:04:49 -0400 Subject: [PATCH] =?UTF-8?q?v2.9.7=20=E2=80=94=20Remove=20Google=20STUN,=20?= =?UTF-8?q?add=20STUN=5FURLS=20env=20var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace Google STUN servers with open-source defaults (stunprotocol.org, nextcloud.com) - Add STUN_URLS env var for custom STUN server configuration - Update .env.example with STUN_URLS documentation --- .env.example | 6 +++ CHANGELOG.md | 10 +++++ docs/index.html | 12 ++++-- package.json | 2 +- public/app.html | 8 ++++ public/css/style.css | 2 +- public/js/modules/app-admin.js | 17 ++++++-- public/js/modules/app-channels.js | 7 ++++ public/js/modules/app-context.js | 5 ++- public/js/modules/app-media.js | 47 ++++++++++++++++----- public/js/modules/app-platform.js | 7 ++++ public/js/modules/app-socket.js | 9 +++- public/js/voice.js | 4 +- public/locales/en.json | 2 + server.js | 9 ++-- src/database.js | 5 ++- src/socketHandlers.js | 69 +++++++++++++++++++++++++------ website/index.html | 12 ++++-- 18 files changed, 188 insertions(+), 45 deletions(-) diff --git a/.env.example b/.env.example index aba9259..2f23137 100644 --- a/.env.example +++ b/.env.example @@ -26,6 +26,12 @@ ADMIN_USERNAME=admin # Optional: Override the data directory location # HAVEN_DATA_DIR= +# Optional: Override STUN servers for voice/WebRTC. +# Default: stun.stunprotocol.org + stun.nextcloud.com +# Comma-separated list of STUN URIs. Set this to point at your own coturn +# or any STUN server for fully self-hosted voice with no external dependencies. +# STUN_URLS=stun:your-server.com:3478,stun:backup-server.com:3478 + # Optional: TURN server for voice/screen sharing across the internet. # Without TURN, voice only works on the same network (LAN). # Recommended: run coturn on the same box or a cheap VPS. diff --git a/CHANGELOG.md b/CHANGELOG.md index 6130237..a605902 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,16 @@ Format follows [Keep a Changelog](https://keepachangelog.com/). Haven uses [Sema --- +## [2.9.7] — 2026-04-09 + +### Changed +- **Removed Google STUN dependency** — voice/WebRTC now defaults to open-source public STUN servers (`stun.stunprotocol.org` and `stun.nextcloud.com`) instead of Google's. No functional change for end users, just removes the Google dependency for a project built around self-hosting. + +### Added +- **`STUN_URLS` environment variable** — server admins can now override the default STUN servers with their own (e.g., a self-hosted coturn instance) for fully self-contained voice with zero external dependencies. Comma-separated list of STUN URIs. + +--- + ## [2.9.6] — 2026-04-07 ### Added diff --git a/docs/index.html b/docs/index.html index 974c614..ac9c299 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1415,12 +1415,12 @@
-

⬡ Haven Server — v2.9.6

+

⬡ Haven Server — v2.9.7

Latest stable release · Windows, macOS & Linux · ~5 MB

- - Download v2.9.6 (.zip) + + Download v2.9.7 (.zip)