mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 09:52:50 +08:00
Fix nickname-connect failures and add ALLOWED_SERVERS gateway allowlist
- Dockerfile: install ca-certificates in the runtime stage. Its absence broke the Rust connector's native-tls HTTPS call to the TeamSpeak nickname-lookup API for every nickname-based connection (GitHub issue #11, "mgonline" report) - Node's own bundled certs masked this everywhere else in the gateway, so only that one HTTPS call failed. - tsclientlib bump: resolver.rs now surfaces the real per-step errors instead of an empty list when every resolution method fails (see that submodule's own commit for detail). - gateway: new ALLOWED_SERVERS env var lets self-hosting admins lock their instance down to specific server(s) (with *.example.com wildcard support) instead of accepting connections to any address. Documented in the README env var table. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
914afd19bd
commit
295af1781e
4 files changed
+46
-1
No files matched your search
@@ -197,6 +197,7 @@ All optional; add them under `environment:` in your compose override next to `PO
|
||||
| `STORE_DATA_FILE` | `store-themes.json` in the container's working dir | Where submitted themes (including screenshots) are stored. Mount a volume over this path if they should survive a container recreate. |
|
||||
| `STORE_ALLOWED_ORIGIN` | `*` | CORS origin allowed to call the store endpoint, if you want to restrict it to your own frontend's origin. |
|
||||
| `STORE_ADMIN_TOKEN` | unset | Bearer token that lets its holder publish under the reserved author name(s) and moderate (delete) any theme. Without it, nobody can. |
|
||||
| `ALLOWED_SERVERS` | unset (any server) | Comma-separated list of server addresses this gateway is allowed to connect to (e.g. `ts.example.com,*.example.net`). A port is matched separately from the host, so listing `ts.example.com` allows any port on it. An entry starting with `*.` matches any subdomain (`*.example.com` allows `ts.example.com`, not `example.com` itself - list that separately too if it should also be reachable). Locks a self-hosted instance down to specific server(s) instead of acting as a general "connect anywhere" client; a rejected `connect` gets an error back before any connector process is even spawned. |
|
||||
|
||||
<details>
|
||||
<summary><b>🛠️ Manual installation (without Docker)</b></summary>
|
||||
|
||||
Reference in new issue
Block a user