| 1 | { |
| 2 | "$schema": "../../node_modules/wrangler/config-schema.json", |
| 3 | "name": "g1t", |
| 4 | "account_id": "1e6f2cffa3f445920836e8ebe446bb58", |
| 5 | "compatibility_date": "2026-09-26", |
| 6 | // AsyncLocalStorage, for per-request timings and D1 bookmarks |
| 7 | // (app/lib/perf.server.ts). |
| 8 | "compatibility_flags": ["nodejs_als"], |
| 9 | // Where it runs: docs/PERFORMANCE.md. Off runs it in the data centre |
| 10 | // nearest the visitor; scripts/perf/placement-probe.mjs measures the |
| 11 | // alternatives and `apply` changes every Worker's at once. |
| 12 | "placement": { "mode": "off" }, |
| 13 | "main": "./workers/app.ts", |
| 14 | // g1tusercontent.com: repository files and avatars, on an origin of |
| 15 | // their own that never sees g1t.sh's cookies (workers/usercontent.ts). |
| 16 | "routes": [ |
| 17 | { "pattern": "g1t.sh", "custom_domain": true }, |
| 18 | { "pattern": "g1tusercontent.com", "custom_domain": true } |
| 19 | ], |
| 20 | // The site holds no data of its own; everything goes through services. |
| 21 | // GitHub Actions artifacts, as the API keeps them, for download from a run. |
| 22 | // Uploaded avatars (g1t-avatars), served at /avatars/<sha256>. Read |
| 23 | // only here: the identity service checks and writes them. |
| 24 | "kv_namespaces": [ |
| 25 | { "binding": "BLOBS", "id": "16a4232cb746418db53782aa068be693" }, |
| 26 | { "binding": "AVATARS", "id": "e627b571f07047e187c03e1fc2b3bbdd" } |
| 27 | ], |
| 28 | // The self-hosted runner's releases, served at /downloads/runner/ |
| 29 | // (routes/downloads-runner.ts); published by scripts/runner-release.mjs. |
| 30 | "r2_buckets": [{ "binding": "DOWNLOADS", "bucket_name": "g1t-downloads" }], |
| 31 | "services": [ |
| 32 | { "binding": "IDENTITY", "service": "g1t-identity" }, |
| 33 | { "binding": "REPOS", "service": "g1t-repos" }, |
| 34 | // The package registries, on g1t.sh/v2/ (workers/app.ts). |
| 35 | { "binding": "PACKAGES", "service": "g1t-packages" }, |
| 36 | { "binding": "WORK", "service": "g1t-work" }, |
| 37 | { "binding": "RUNNER", "service": "g1t-runner" }, |
| 38 | { "binding": "BILLING", "service": "g1t-billing" }, |
| 39 | { "binding": "EVENTS", "service": "g1t-events" }, |
| 40 | { "binding": "INTEGRATIONS", "service": "g1t-integrations" }, |
| 41 | { "binding": "WEBHOOKS", "service": "g1t-webhooks" }, |
| 42 | { "binding": "ACTIONS", "service": "g1t-actions" }, |
| 43 | { "binding": "DEPLOYMENTS", "service": "g1t-deployments" }, |
| 44 | { "binding": "PROJECTS", "service": "g1t-projects" }, |
| 45 | { "binding": "SECURITY", "service": "g1t-security" }, |
| 46 | { "binding": "CONTEXT", "service": "g1t-context" }, |
| 47 | { "binding": "SEARCH", "service": "g1t-search" }, |
| 48 | // Chat: channels, direct messages and the live socket (services/chat). |
| 49 | { "binding": "CHAT", "service": "g1t-chat" }, |
| 50 | // The workspace's own agents: definitions, templates, desks (services/agents). |
| 51 | { "binding": "AGENTS", "service": "g1t-agents" }, |
| 52 | // Production screenshots for a project's overview (services/og). |
| 53 | { "binding": "SCREENSHOTS", "service": "g1t-og", "entrypoint": "Screenshots" } |
| 54 | ], |
| 55 | // The front door's limits (app/lib/front-door-limits.ts). Every id and |
| 56 | // limit is in RATE_LIMITS (packages/contracts/src/rate-limits.ts), which |
| 57 | // the tests check this against. Self-hosted, without them, nothing is limited. |
| 58 | "ratelimits": [ |
| 59 | { "name": "WEB_ANONYMOUS_LIMIT", "namespace_id": "4201", "simple": { "limit": 600, "period": 60 } }, |
| 60 | { "name": "WEB_HEAVY_LIMIT", "namespace_id": "4202", "simple": { "limit": 30, "period": 60 } }, |
| 61 | { "name": "WEB_SESSION_LIMIT", "namespace_id": "4203", "simple": { "limit": 1200, "period": 60 } }, |
| 62 | { "name": "WEB_ADDRESS_LIMIT", "namespace_id": "4204", "simple": { "limit": 3000, "period": 60 } }, |
| 63 | { "name": "GIT_ANONYMOUS_LIMIT", "namespace_id": "4205", "simple": { "limit": 120, "period": 60 } }, |
| 64 | { "name": "GIT_SIGNED_LIMIT", "namespace_id": "4206", "simple": { "limit": 1200, "period": 60 } } |
| 65 | ], |
| 66 | // Logs of a tenth of requests: every page view is one, too many to keep all. |
| 67 | "observability": { "enabled": true, "head_sampling_rate": 0.1 }, |
| 68 | "upload_source_maps": true |
| 69 | } |