g1t/services/webhooks/wrangler.jsonc

33 lines1,191 bytesCodeBlame
1{
2 "$schema": "../../node_modules/wrangler/config-schema.json",
3 "name": "g1t-webhooks",
4 "account_id": "1e6f2cffa3f445920836e8ebe446bb58",
5 "compatibility_date": "2026-09-26",
6 "placement": { "mode": "off" },
7 "main": "build/index.js",
8 "build": { "command": "node ../../scripts/build-rust-worker.mjs" },
9 // Reached only through service bindings; it reaches out to the
10 // addresses webhooks are registered at.
11 "workers_dev": false,
12 "d1_databases": [
13 {
14 "binding": "DB",
15 "database_name": "g1t-webhooks",
16 "database_id": "7da97a7e-b4a7-40e3-a129-3b78d654e9bb",
17 "migrations_dir": "migrations"
18 }
19 ],
20 "services": [
21 { "binding": "REPOS", "service": "g1t-repos" },
22 { "binding": "IDENTITY", "service": "g1t-identity" }
23 ],
24 // Every event on the bus, to deliver to the webhooks that want it.
25 "queues": {
26 "consumers": [{ "queue": "g1t-events-webhooks", "max_batch_size": 20, "max_batch_timeout": 1 }]
27 },
28 // Retries that are due, and deliveries old enough to forget.
29 "triggers": { "crons": ["* * * * *"] },
30 // Secret: WEBHOOKS_KEY, 64 hex characters. Webhooks' signing secrets are
31 // sealed with it; without it none can be made.
32 "observability": { "enabled": true }
33}