@@ -7,7 +7,7 @@ How to run the unified ingress gateway that receives source events and publishes
77` trogon-gateway ` starts:
88
99- One HTTP server for webhook-based sources
10- - Optional Discord Gateway (WebSocket) runner when Discord is configured in ` gateway ` mode
10+ - Optional Discord Gateway (WebSocket) runner when Discord is enabled
1111- JetStream stream provisioning for every enabled source
1212- Health probes at ` GET /-/liveness ` and ` GET /-/readiness `
1313
@@ -34,7 +34,6 @@ All webhook sources share one HTTP port (`TROGON_GATEWAY_PORT`, default `8080`)
3434| Source | Route |
3535| ---| ---|
3636| GitHub | ` /github/webhook ` |
37- | Discord (webhook mode) | ` /discord/webhook ` |
3837| Slack | ` /slack/webhook ` |
3938| Telegram | ` /telegram/webhook ` |
4039| GitLab | ` /gitlab/webhook ` |
@@ -47,8 +46,7 @@ A source is enabled only when its required setting is present:
4746| Source | Required setting |
4847| ---| ---|
4948| GitHub | ` TROGON_SOURCE_GITHUB_WEBHOOK_SECRET ` |
50- | Discord (` gateway ` ) | ` TROGON_SOURCE_DISCORD_MODE=gateway ` and ` TROGON_SOURCE_DISCORD_BOT_TOKEN ` |
51- | Discord (` webhook ` ) | ` TROGON_SOURCE_DISCORD_MODE=webhook ` and ` TROGON_SOURCE_DISCORD_PUBLIC_KEY ` |
49+ | Discord | ` TROGON_SOURCE_DISCORD_BOT_TOKEN ` |
5250| Slack | ` TROGON_SOURCE_SLACK_SIGNING_SECRET ` |
5351| Telegram | ` TROGON_SOURCE_TELEGRAM_WEBHOOK_SECRET ` |
5452| GitLab | ` TROGON_SOURCE_GITLAB_WEBHOOK_SECRET ` |
@@ -78,7 +76,6 @@ Per-source optional tuning (with defaults):
7876Source-specific extras:
7977
8078- ` TROGON_SOURCE_DISCORD_GATEWAY_INTENTS `
81- - ` TROGON_SOURCE_DISCORD_NATS_REQUEST_TIMEOUT_SECS ` (default: ` 2 ` )
8279- ` TROGON_SOURCE_SLACK_TIMESTAMP_MAX_DRIFT_SECS ` (default: ` 300 ` )
8380- ` TROGON_SOURCE_LINEAR_TIMESTAMP_TOLERANCE_SECS ` (default: ` 60 ` , ` 0 ` disables tolerance)
8481
@@ -102,10 +99,7 @@ url = "localhost:4222"
10299webhook_secret = " gh-secret"
103100
104101[sources .discord ]
105- mode = " webhook"
106- public_key = " <discord-public-key-hex>"
107- # mode = "gateway"
108- # bot_token = "<discord-bot-token>"
102+ bot_token = " <discord-bot-token>"
109103
110104[sources .slack ]
111105signing_secret = " slack-secret"
0 commit comments