feat(webrtc): add configurable STUN and TURN servers

Add backend config, RPC handlers, and an HTTP endpoint for WebRTC ICE servers. Replace hardcoded frontend STUN usage with server-provided ICE server configuration, and add access settings UI for STUN and TURN entries.
This commit is contained in:
Augtons
2026-05-03 16:43:29 +08:00
parent d5bfaffd86
commit f1a6c75fc0
12 changed files with 354 additions and 31 deletions

View File

@@ -571,5 +571,23 @@
"65f1314580": "确认您的密码",
"af21497286": "设置密码",
"c3f88872d6": "此密码将用于保护您的设备数据并防止未经授权的访问。",
"06a7b3bf6e": "所有数据保留在您的本地设备上。"
}
"06a7b3bf6e": "所有数据保留在您的本地设备上。",
"d6d56d5972": "WebRTC 服务器",
"8bea04c48e": "用于点对点连接的 STUN 和 TURN 服务器",
"4cd48aed7f": "STUN 服务器已保存",
"f6f10b4517": "TURN 服务器已保存",
"d235995f96": "STUN 服务器",
"fc1bd2c935": "用于 NAT 穿透的公共 STUN 服务器",
"289929755b": "恢复默认",
"0268827609": "TURN 服务器",
"b3c14a0273": "当直接点对点连接失败时用作中继",
"bbc48fb751": "未配置 TURN 服务器",
"f6039d44b2": "用户名",
"03bc142e64": "凭据",
"ca3e8baee9": "添加 TURN 服务器",
"0acde1b3e3": "保存 TURN 服务器",
"6f20995c95": "加载 WebRTC 服务器失败",
"6ef7ce5b80": "保存 STUN 失败",
"4b5d050e51": "保存 TURN 失败",
"aee9784c03": "未知错误"
}