feat(gateway)!: drop HTTP listener, run outbound agent only

- delete GatewayHTTPServer/GatewayHandler, create_server, /healthz and
  /v1/channel; event_channel module removed
- load_config now requires CREATOR_PLATFORM_URL + CREATOR_GATEWAY_KEY
- run() wires Gateway into OutboundAgent; SIGINT/SIGTERM stop the agent
- deploy env example, install script, systemd unit docs and deployment
  docs updated to the outbound model; NATIVE_GATEWAY_ENDPOINT dead dev
  config removed
This commit is contained in:
2026-10-09 08:25:27 +08:00
parent 469b283ac2
commit d9e57c4900
17 changed files with 199 additions and 623 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
# Copy to ~/.config/creatorhub/browser-gateway.env and replace the token.
LISTEN_ADDR=0.0.0.0:8081
GATEWAY_TOKEN=replace-with-at-least-16-random-characters
# Copy to ~/.config/creatorhub/browser-gateway.env and replace the key.
# 平台地址与网关 key 在控制面「网关管理」页生成;网关主动出站连接平台。
CREATOR_PLATFORM_URL=http://platform.example:8080
CREATOR_GATEWAY_KEY=replace-with-at-least-16-random-characters
BROWSER_STATE_DIR=~/.local/state/creatorhub/browser-gateway
BROWSER_PROFILE_ROOT=~/.local/share/creatorhub/browser-profiles
BROWSER_PATH=~/.local/share/creatorhub/browsers/fingerprint-chromium/148.0.7778.215/chrome