g1t/services/packages/dev/packages.jsonc

45 lines2,048 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member1// The packages service as `wrangler dev` runs it on its own: local D1 and
2// R2, its other services stubbed (stubs.js). From services/packages:
3//
4// node ../../scripts/build-rust-worker.mjs
5// npx wrangler d1 migrations apply g1t-packages --local -c dev/packages.jsonc
6// npx wrangler dev -c dev/packages.jsonc -c dev/stubs.jsonc --local --port 8790
7//
8// Then `docker login localhost:8790 -u dev` with g1t_devtoken as the
9// password, and push to localhost:8790/acme/<name> (`acme/web` is linked to
10// a private repository, `acme/site` to a public one). With Docker Desktop
11// the daemon's localhost is its VM's: forward it to this machine first,
12//
13// docker run -d --name g1t-registry-forward --network host alpine/socat \
14// tcp-listen:8790,fork,reuseaddr tcp-connect:host.docker.internal:8790
15//
16// Add --test-scheduled to `wrangler dev` to run the sweep with
17// `curl "http://localhost:8790/cdn-cgi/handler/scheduled?cron=37+*+*+*+*"`.
18{
19 "name": "g1t-packages",
20 "main": "../build/index.js",
21 "compatibility_date": "2026-09-26",
22 "d1_databases": [
23 { "binding": "DB", "database_name": "g1t-packages", "database_id": "local", "migrations_dir": "../migrations" }
24 ],
25 "r2_buckets": [{ "binding": "BLOBS", "bucket_name": "g1t-packages" }],
26 // Low, so the 429 can be seen by hand: about 30 requests a minute.
27 "ratelimits": [
28 { "name": "ANONYMOUS_LIMIT", "namespace_id": "1", "simple": { "limit": 30, "period": 60 } },
29 { "name": "SIGNED_LIMIT", "namespace_id": "2", "simple": { "limit": 5000, "period": 60 } }
30 ],
31 "services": [
32 { "binding": "IDENTITY", "service": "g1t-packages-stubs" },
33 { "binding": "REPOS", "service": "g1t-packages-stubs" },
34 { "binding": "EVENTS", "service": "g1t-packages-stubs" },
35 { "binding": "BILLING", "service": "g1t-packages-stubs" }
36 ],
37 "vars": {
38 "BLOB_STORE": "r2",
39 "MAX_REQUEST_BYTES": "100000000",
40 "REGISTRY_HOST": "localhost:8790",
41 "STORAGE_LIMITS": "on",
42 "PACKAGES_TOKEN_SECRET": "a-local-secret-that-is-long-enough-to-sign"
43 },
44 "triggers": { "crons": ["37 * * * *"] }
45}