Docs: gateway runtime configuration, permission rules and protocol

gateway-admin.md explains bootstrap keys versus seeds, the precedence
(runtime > --set > environment > file > default), reloading, every key,
the admin commands, permission rules with their defaults and the data
the database keeps. The history retention default is now to keep
messages; the doc says how to get the old 30 days back.

gateway-protocol.md is the reference of tsgw.v1+json with the new
messages. The example config marks bootstrap keys and lists the seeds.
The systemd unit reloads with SIGHUP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-27 18:41:25 +00:00
1 parent c84eaacbf5
commit 91d69f1933
4 files changed
+417 -15

No files matched your search

+2
View File
@@ -12,6 +12,8 @@ ConditionPathExists=/etc/tsgw/tsgw.toml
[Service]
ExecStart=/usr/bin/tsgw --config /etc/tsgw/tsgw.toml
# Re-reads tsgw.toml; values set at runtime keep winning.
ExecReload=/bin/kill -HUP $MAINPID
# Read by systemd before dropping privileges, so it can stay root-only.
EnvironmentFile=-/etc/tsgw/tsgw.env
DynamicUser=yes