Files
VoelinClient/crates/tsc-gateway/tsgw.example.toml
T
Claude 9b529ceff6 M4: tsgw gateway and tsc-gateway-proto
- tsc-gateway-proto: versioned JSON envelope (tsgw.v1+json), client and
  server messages, identity-challenge auth (ECDSA P-256 over a signed
  challenge), unique ids for TS3 (SHA-1) and TS6 (SHA-256, verified on
  6.0.0-beta13.1), hash-cash level.
- tsc-gateway (tsgw): axum WebSocket server; hub with one observer, a
  relay pool and a lookup query session; login by signature or token;
  permission mirroring via permoverview (server group/client/channel
  group/channel-client levels, skip and negate); per-user filtered
  presence (snapshot + diff deltas); channel/server chat relay with
  server-known nicknames, rate limit, idle relay teardown, pinned
  channels; SQLite tokens, history and audit; Dockerfile; admin guide.
- tsctl gateway client; smoke test covers gateway presence, chat both
  ways and refusal of unknown identities on TS3 and TS6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 14:30:44 +00:00

44 lines
1.2 KiB
TOML

# tsgw: companion gateway for invisible presence and channel chat.
# Copy to tsgw.toml and adjust. See docs/gateway-admin.md.
# Signed into every login challenge. Defaults to listen.public_url.
# gateway_id = "wss://gw.example.org/v1"
[server]
# Voice port of the virtual server this gateway serves.
voice_port = 9987
[query]
# "ssh" (TeamSpeak 3 and 6) or "raw" (TeamSpeak 3 only).
transport = "ssh"
addr = "127.0.0.1:10022"
user = "serveradmin"
# Prefer password_file or the TSGW_QUERY_PASSWORD environment variable.
# password_file = "/run/secrets/tsgw_query_password"
# Set to true once the gateway's IP is in the server's query_ip_allowlist.
allowlisted = false
[listen]
bind = "0.0.0.0:7788"
# public_url = "wss://gw.example.org/v1"
[auth]
# Only these server groups may use the gateway (empty: everyone known to the server).
require_server_groups = []
deny_uids = []
min_security_level = 0
token_ttl_hours = 720
[relay]
nickname = "Chat Relay"
format = "[{nick}] {text}"
idle_teardown_secs = 120
max_channel_relays = 6
# Channels relayed all the time, so their history is complete.
pinned_channels = []
[history]
enabled = true
path = "tsgw.db"
retention_days = 30