pr_01m47d24b0e6n91zwymwxg0vpx/services/integrations/wrangler.jsonc
| 1 | { |
| 2 | "$schema": "../../node_modules/wrangler/config-schema.json", |
| 3 | "name": "g1t-integrations", |
| 4 | "account_id": "1e6f2cffa3f445920836e8ebe446bb58", |
| 5 | "compatibility_date": "2026-09-26", |
| 6 | // Runs next to its database: a request makes several queries in turn, |
| 7 | // and each would otherwise cross the distance to it. |
| 8 | "placement": { "mode": "smart" }, |
| 9 | "main": "build/index.js", |
| 10 | "build": { "command": "cargo install -q worker-build@0.8.7 && worker-build --release" }, |
| 11 | // Reached only through service bindings. Outside systems reach it |
| 12 | // through the API, at https://api.g1t.sh/hooks/<connection>. |
| 13 | "workers_dev": false, |
| 14 | "d1_databases": [ |
| 15 | { |
| 16 | "binding": "DB", |
| 17 | "database_name": "g1t-integrations", |
| 18 | "database_id": "86c6c1a9-4192-42d8-8c59-8da8d4f99c5e", |
| 19 | "migrations_dir": "migrations" |
| 20 | } |
| 21 | ], |
| 22 | "services": [ |
| 23 | { "binding": "IDENTITY", "service": "g1t-identity" }, |
| 24 | { "binding": "WORK", "service": "g1t-work" }, |
| 25 | { "binding": "RUNNER", "service": "g1t-runner" }, |
| 26 | // Where a transferred repository is now, for moving its links. |
| 27 | { "binding": "REPOS", "service": "g1t-repos" } |
| 28 | ], |
| 29 | // Work starting on, and finishing, what an outside system is waiting on. |
| 30 | "queues": { |
| 31 | "consumers": [{ "queue": "g1t-events-integrations", "max_batch_size": 20, "max_batch_timeout": 1 }] |
| 32 | }, |
| 33 | "vars": { |
| 34 | "API_URL": "https://api.g1t.sh", |
| 35 | "SITE_URL": "https://g1t.sh", |
| 36 | // g1t's GitHub App (src/github.rs), for installations, imports, |
| 37 | // mirrors and its webhook at API_URL/hooks/github. Secrets: |
| 38 | // GITHUB_APP_PRIVATE_KEY (the downloaded .pem, PKCS#1 or PKCS#8) and |
| 39 | // GITHUB_APP_WEBHOOK_SECRET. Leave the slug empty to turn it off. |
| 40 | "GITHUB_APP_ID": "5203641", |
| 41 | "GITHUB_APP_SLUG": "g1t-sh", |
| 42 | "GITHUB_APP_CLIENT_ID": "Iv23liZS94alfjIUn1eW" |
| 43 | }, |
| 44 | // Secret: INTEGRATIONS_KEY, 64 hex characters. Connections' secrets are |
| 45 | // sealed with it; without it nothing can be connected. |
| 46 | "observability": { "enabled": true } |
| 47 | } |