Auto merge dev → main (#1353)

* feat(gateway): hashed key store with grant + hot reload

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(gateway): channel registry + aiohttp app (keyed auth, whoami, per-channel ws/proxy)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(gateway): manage_keys CLI (add/list/revoke)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(gateway): retire srebot_external, run relay-gateway under PM2

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(gateway): point ecosystem + README at relay-gateway

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(tss): replay outbox producer for relay gateway

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(tss): forward processed games to relay outbox

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(tss-api): db helpers, app skeleton, info endpoint, fixtures

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(tss-api): player, games, history, search endpoints

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(tss-api): live, match, scoreboard, matches-search, maps

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(tss-api): filter-required leaderboards (players/vehicles/stats)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(tss-api): tournament list/detail/standings/matches

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat: wire tss upstream through gateway + tssbot-api PM2 app

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
NotSoToothless
2026-06-28 03:38:20 -07:00
committed by GitHub
parent ea5494bce0
commit cbb532a711
3 changed files with 60 additions and 395 deletions
+34 -10
View File
@@ -50,22 +50,46 @@ module.exports = {
restart_delay: 2000
},
// External bridge for AXBot traffic:
// - Proxies read-only API queries to the internal SREBOT API
// - Streams bridge envelopes to AXBot over websocket
// Reads SREBOT_EXTERNAL_HOST/PORT/UPSTREAM_URL from .env.
// TSS read-only HTTP API (loopback). Proxied by relay-gateway as /api/tss/*.
// Reads TSS_API_HOST/PORT from .env (default 127.0.0.1:6100).
{
name: 'srebot-axbot',
script: 'BOT/srebot_external.py',
name: 'tssbot-api',
script: '-m',
args: 'web.main',
interpreter: PY_INTERPRETER,
cwd: DEPLOY_PATH,
cwd: `${DEPLOY_PATH}/../TSSBOT`,
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
log_file: './logs/axbot_combined.log',
out_file: './logs/axbot_out.log',
error_file: './logs/axbot_error.log',
log_file: `${DEPLOY_PATH}/logs/tssbot_api_combined.log`,
out_file: `${DEPLOY_PATH}/logs/tssbot_api_out.log`,
error_file: `${DEPLOY_PATH}/logs/tssbot_api_error.log`,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,
kill_timeout: 5000,
restart_delay: 2000
},
// Unified relay gateway fronting SREBOT (sqb) and TSSBOT (tss):
// - Proxies read-only API queries (/api/sqb/* -> SREBOT :6000; /api/tss/* -> TSS API or 501)
// - Streams replay envelopes over /ws/sqb and /ws/tss
// - Per-key auth (all/sqb/tss) via $STORAGE_VOL_PATH/relay_keys.json
// Lives in BOTS/SHARED/relay_gateway; loads SREBOT/.env for shared config.
// Reads SREBOT_EXTERNAL_HOST/PORT/UPSTREAM_URL + STORAGE_VOL_PATH from .env.
{
name: 'relay-gateway',
script: '-m',
args: 'relay_gateway.gateway',
interpreter: PY_INTERPRETER,
cwd: `${DEPLOY_PATH}/../SHARED`,
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
log_file: `${DEPLOY_PATH}/logs/relay_gateway_combined.log`,
out_file: `${DEPLOY_PATH}/logs/relay_gateway_out.log`,
error_file: `${DEPLOY_PATH}/logs/relay_gateway_error.log`,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,
kill_timeout: 5000,