mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-02 17:32:50 +08:00
Add URL-based and build-time auto-connect (closes #10)
Landing pages can now send visitors straight into a TeamSpeak server: a ?connect=host&nickname=&channel=&token= share link auto-connects on any deployment, or a self-hoster can bake in a default server at build time (VITE_DEFAULT_SERVER/VITE_DEFAULT_CHANNEL, mirroring the existing DONATE_URL Docker ARG pattern) so every visitor auto-joins with zero params. A share link always overrides the build-time default. Waits for the mandatory first-visit ToS gate where applicable, falls back to a prefilled reopened connect dialog on failure, and generates a Guest-XXXX nickname when none is available. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
f44327aabc
commit
faeb269fdd
3 files changed
+80
-2
No files matched your search
@@ -180,6 +180,13 @@ docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest
|
||||
|
||||
The UI shows a small **Ko-fi donation button** in the bottom right corner. Building it yourself and would rather not carry someone else's donation link? `docker compose build --build-arg DONATE_URL=` removes it (any other value points it somewhere else). Outside Docker the same thing is a build-time variable: `VITE_DONATE_URL= npm run build` in `web/`.
|
||||
|
||||
Want your instance to auto-connect visitors to a specific TeamSpeak server? Two ways, and either works with no user input at all:
|
||||
|
||||
- **Share link**: send anyone `https://your-instance/?connect=your.ts.server&nickname=Guest&channel=Lobby&token=...` - `connect` is the only required part, the rest are optional. Works on any deployment, no rebuild needed.
|
||||
- **Baked-in default**: `docker compose build --build-arg DEFAULT_SERVER=your.ts.server --build-arg DEFAULT_CHANNEL=Lobby` (or `VITE_DEFAULT_SERVER=your.ts.server npm run build` in `web/`) makes every visitor auto-connect there by default. A share link still overrides it when present.
|
||||
|
||||
Visitors with no nickname of their own get an auto-generated `Guest-XXXX` one.
|
||||
|
||||
<details>
|
||||
<summary><b>🛠️ Manual installation (without Docker)</b></summary>
|
||||
|
||||
|
||||
Reference in new issue
Block a user