๐ŸŽ›๏ธ TS6 Manager

TS6 Manager is a web-based management interface for TeamSpeak servers. It lets you control virtual servers, channels, clients, permissions, music bots, automated workflows and embeddable server widgets โ€” all from your browser.

It is built on the WebQuery HTTP API, the ServerQuery replacement in modern TeamSpeak builds. Telnet is not used or supported. It pairs naturally with the ๐ŸŽ™๏ธ TeamSpeak 6 Server template.

๐Ÿท๏ธ Category: Game Server

๐Ÿณ Images:

Template Image
TS6-Manager-Backend clusterzx/ts6-manager:backend
TS6-Manager-Frontend clusterzx/ts6-manager:frontend
TS6-Manager-Sidecar clusterzx/ts6-manager:sidecar

๐Ÿ–ผ๏ธ Screenshots

Dashboard

Music Bots

Flow Editor

Screenshots: clusterzx/ts6-manager (MIT)


โœจ Features

Area What you get
๐Ÿ–ฅ๏ธ Server Management Live dashboard, channel tree with drag & drop, client actions (kick, ban, move, poke), server & channel groups, permission editor, ban list, privilege keys, logs, file browser
๐ŸŽต Music Bots Multiple bots per server with own queue, radio streams, YouTube via yt-dlp, local music library, in-channel chat commands
๐Ÿ“บ Video Streaming Live video from YouTube, Twitch or direct URLs into TeamSpeak channels via the WebRTC sidecar
๐Ÿ”€ Bot Flow Engine Visual node editor โ€” triggers (TS events, cron, webhooks, chat commands), conditions and actions; templates for temp channels, AFK mover, idle kicker and more
๐Ÿชง Server Widgets Embeddable status banner for websites as live page, SVG or PNG
๐Ÿ”’ Security Setup wizard (no default credentials), AES-256-GCM encrypted credentials, admin / viewer roles, per-server access

๐Ÿงฉ Stack Overview

TS6 Manager consists of three containers. Each one is its own template in the MOS Hub.

Template Role Required
TS6-Manager-Backend Express API, WebQuery client, bot engine, music bots, SQLite database โœ…
TS6-Manager-Frontend React web UI served by nginx, proxies /api and /ws to the backend โœ…
TS6-Manager-Sidecar Go/Pion WebRTC relay for video streaming Only for video streaming
Browser โ”€โ”€โ–ถ Frontend :3000 โ”€โ”€โ–ถ backend:3001 โ”€โ”€โ–ถ TeamSpeak WebQuery :10080
                                    โ”‚                     SSH Query :10022
                                    โ””โ”€โ”€โ–ถ ts6-sidecar:9800 (video)

๐Ÿ”Œ How the containers find each other

The upstream images expect the hostnames backend and ts6-sidecar (the frontendโ€™s nginx config proxies to http://backend:3001, the backend defaults to SIDECAR_URL=http://ts6-sidecar:9800).

The templates solve this with Dockerโ€™s --add-host option in Extra Parameters:

Template Extra Parameter Effect
Frontend --add-host=backend:host-gateway backend resolves to the MOS host โ†’ host port 3001
Backend --add-host=ts6-sidecar:host-gateway ts6-sidecar resolves to the MOS host โ†’ host port 9800

โš ๏ธ Important: Because of this, the backend must be published on host port 3001 and the sidecar on host port 9800. Only the frontend port (3000) can be changed freely.


ย  ย 
๐Ÿ“ฆ Project github.com/clusterzx/ts6-manager
๐Ÿ› Support GitHub Issues
๐Ÿ’ฌ Community TeamSpeak Community โ€“ TS6 Server Tools

๐ŸŒ Ports

Template Port Protocol Description
Frontend 3000 โ†’ 80 TCP Web interface (nginx)
Backend 3001 TCP API & WebSocket โ€” must stay 3001
Sidecar 9800 TCP Sidecar HTTP control API โ€” must stay 9800

โš ๏ธ Port conflicts: In this repository, Grafana, Homepage, Tracearr and Gotenberg also default to host port 3000, Uptime Kuma and Dashdot to 3001. Change the frontend port to a free one if needed. If 3001 is taken, move the other app to a different host port โ€” or use the custom nginx config described under Advanced: Custom Backend Port below.


๐Ÿ’พ Volumes

Template Host Path Container Path Mode Description
Backend /mnt/cache/appdata/ts6-manager/data /app/packages/backend/data RW SQLite database & uploaded YouTube cookie file
Backend /mnt/cache/appdata/ts6-manager/music /data/music RW Music library & yt-dlp downloads

Frontend and sidecar store no data.


โš™๏ธ Environment Variables

๐Ÿ”™ Backend

Variable Default Masked Description
JWT_SECRET (empty) โœ… Required. Random secret, min. 32 characters. Without it the backend exits on start
ENCRYPTION_KEY (empty) โœ… Recommended. Key for encrypting stored API keys & SSH passwords. Falls back to JWT_SECRET
FRONTEND_URL http://YOUR-SERVER-IP:3000 โŒ URL of the web UI, used as CORS origin
TS_ALLOW_SELF_SIGNED false โŒ true if WebQuery runs over HTTPS with a self-signed certificate
SIDECAR_URL http://ts6-sidecar:9800 โŒ Sidecar address โ€” works with the --add-host entry
DATABASE_URL file:/app/packages/backend/data/ts6webui.db โŒ SQLite path inside the container โ€” leave as is
MUSIC_DIR /data/music โŒ Music path inside the container โ€” leave as is
NODE_ENV production โŒ Runtime mode โ€” leave as is
PORT 3001 โŒ Internal API port โ€” must stay 3001
JWT_ACCESS_EXPIRY 15m โŒ Access token lifetime
JWT_REFRESH_EXPIRY 7d โŒ Refresh token lifetime
TZ Europe/Vienna โŒ Container timezone

๐Ÿ“บ Sidecar

Variable Default Masked Description
SIDECAR_PORT 9800 โŒ Internal HTTP port โ€” must match SIDECAR_URL
SIDECAR_DEBUG_LOGS 0 โŒ 1 enables verbose debug logging

๐Ÿ–ฅ๏ธ Frontend

No environment variables required for this container.


๐Ÿš€ Quick Start

โ”œโ”€ 1๏ธโƒฃ Generate the secrets

 ```bash
 openssl rand -base64 32   # โ†’ JWT_SECRET
 openssl rand -base64 32   # โ†’ ENCRYPTION_KEY
 ```

โ”œโ”€ 2๏ธโƒฃ Create the data directories

 ```bash
 mkdir -p /mnt/cache/appdata/ts6-manager/data
 mkdir -p /mnt/cache/appdata/ts6-manager/music
 ```

โ”œโ”€ 3๏ธโƒฃ Install from the MOS Hub โ€” in this order

 1. **TS6-Manager-Sidecar**
 2. **TS6-Manager-Backend** โ€” paste `JWT_SECRET` and `ENCRYPTION_KEY`,
    replace `YOUR-SERVER-IP` in `FRONTEND_URL`
 3. **TS6-Manager-Frontend**

โ”œโ”€ 4๏ธโƒฃ Create the admin account

 Open `http://your-server-ip:3000/setup` and create your admin user.
 There are no default credentials.

โ”œโ”€ 5๏ธโƒฃ Prepare your TeamSpeak server

 - **WebQuery HTTP** must be enabled (the TeamSpeak 6 template exposes it on `10080`)
 - Create a **WebQuery API key** โ€” e.g. with the `apikeyadd` query command
 - **SSH Query** (`10022`) plus username & password are only needed for
   bot flow event triggers

โ””โ”€ 6๏ธโƒฃ Connect the server

 In TS6 Manager go to **Settings โ†’ Connections** and add:

 | Field | Value |
 |---|---|
 | Host | IP of your MOS server |
 | WebQuery Port | `10080` |
 | API Key | your WebQuery API key |
 | SSH Port | `10022` *(optional)* |

โš ๏ธ Note: Do not use localhost or 127.0.0.1 as host โ€” inside the backend container that points to the container itself, not to your TeamSpeak server.


๐ŸŽต Music Bot Commands

Users in the botโ€™s channel can control it via text chat:

Command Description
!radio List available radio stations
!radio <id> Play a radio station
!play <url> Play from YouTube URL
!play Resume paused playback
!stop Stop playback
!pause Toggle pause / resume
!skip / !next Next track in queue
!prev Previous track
!vol Show current volume
!vol <0-100> Set volume
!np Show current track

๐Ÿฉบ Troubleshooting

โ”œโ”€ Backend stops right after start

 The log shows `[FATAL] JWT_SECRET is set to the default value`.
 โ†’ `JWT_SECRET` is empty. Set it and restart the container.

โ”œโ”€ Frontend container keeps restarting

 nginx can't resolve `backend`.
 โ†’ Check that **Extra Parameters** of the frontend contain
 `--add-host=backend:host-gateway`.

โ”œโ”€ Web UI loads, but login / API calls fail (502)

 โ†’ Make sure `TS6-Manager-Backend` is running and published on host port `3001`.

โ”œโ”€ Video streaming doesnโ€™t start

 โ†’ Check that `TS6-Manager-Sidecar` is running on host port `9800` and that the
 backend has `--add-host=ts6-sidecar:host-gateway` in its Extra Parameters.

โ””โ”€ YouTube asks for a bot check / age-restricted videos fail

 โ†’ Upload a Netscape-format `cookies.txt` under **Settings โ†’ YouTube** in the UI.
 It is stored in the data volume and survives restarts.

๐Ÿ› ๏ธ Advanced: Custom Backend Port

If host port 3001 is already taken, you can override the frontendโ€™s nginx config so it proxies to another port.

โ”œโ”€ 1๏ธโƒฃ Change the backendโ€™s host port (e.g. 3011) โ€” keep the container port 3001

โ”œโ”€ 2๏ธโƒฃ Create /mnt/cache/appdata/ts6-manager/nginx/default.conf

 ```nginx
 server {
     listen 80;
     server_name _;
     root /usr/share/nginx/html;
     index index.html;

     client_max_body_size 150m;

     location /api {
         proxy_pass http://backend:3011;
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Proto $scheme;
     }

     location /ws {
         proxy_pass http://backend:3011;
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
         proxy_set_header Host $host;
     }

     location /widget/ {
         add_header X-Frame-Options "";
         add_header Content-Security-Policy "frame-ancestors *";
         try_files $uri $uri/ /index.html;
     }

     location / {
         try_files $uri $uri/ /index.html;
     }

     gzip on;
     gzip_types text/plain text/css application/json application/javascript text/xml;
 }
 ```

โ””โ”€ 3๏ธโƒฃ Add a path to the frontend template

 | Host Path | Container Path | Mode |
 |---|---|---|
 | `/mnt/cache/appdata/ts6-manager/nginx/default.conf` | `/etc/nginx/conf.d/default.conf` | RO |

๐Ÿ’ก Tip: This is the imageโ€™s built-in config with only the two proxy_pass ports changed.


๐Ÿ’ก Notes

๐Ÿ”’ Security: Only the frontend (3000) needs to be reachable for users. Keep 3001 and 9800 closed to the internet โ€” the backend API is meant to be accessed through the frontend.

๐Ÿ”‘ Encryption key: Stored API keys and SSH passwords are encrypted with a key derived from ENCRYPTION_KEY (or JWT_SECRET if empty). If you change it later, existing credentials can no longer be decrypted and have to be re-entered.

๐ŸŒ Reverse proxy: Point your proxy (e.g. SWAG, Nginx Proxy Manager) at the frontend port and set FRONTEND_URL to your public URL. WebSockets (/ws) must be allowed through.

๐Ÿชง Widgets: Public server widgets under /widget/<token> work without login and can be embedded in websites.

๐Ÿค– AI notice: The upstream project marks itself as an AI Assisted Project.

๐Ÿ“š For more information: See the TS6 Manager README for all features and the full list of sidecar tuning variables.


MOS Templates โ€“ maintained by J000K3R

This site uses Just the Docs, a documentation theme for Jekyll.