Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ Secrets are SOPS-encrypted per deployment (`.env.staging.enc`); decrypt them int
to a file. Add migrations with `cd packages/server && npx drizzle-kit generate --name <name>`;
never edit one that a deployment has applied.

Both production Workers tail into Whistle (`tail_consumers`, `kf-whistle`), which files their
errors, limits and cron runs under `kf/underlay`; `kf.project.jsonc` names them for it.

## License

MIT. See [LICENSE](LICENSE).
16 changes: 14 additions & 2 deletions kf.project.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
"name": "Underlay",
"account": "kf",

// No environments yet: the console registers the project and deploys
// nothing. Add "environments" (with at least "production") to deploy.
// Deployed by hand with wrangler (README "Deployment"), so the console deploys
// nothing: it registers where each environment answers, and production with
// Whistle, whose Worker both production Workers tail into (wrangler.jsonc).
"environments": {
"production": {
"elsewhere": { "hosts": ["www.underlay.org"] },
"services": {
"kf/whistle@1": { "workers": ["underlay-prod", "underlay-prod-bulk"] },
},
},
"staging": {
"elsewhere": { "hosts": ["staging.underlay.org"] },
},
},
}
2 changes: 2 additions & 0 deletions packages/server/wrangler.bulk.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
},
"prod": {
"name": "underlay-prod-bulk",
// Each run's errors, limits and cron runs go to Whistle (kf.project.jsonc names this Worker).
"tail_consumers": [{ "service": "kf-whistle" }],
"vars": {
"ROLE": "bulk",
// The pool of Durable Objects the v3 queue's jobs run in (worker.ts V3Pool).
Expand Down
2 changes: 2 additions & 0 deletions packages/server/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@
},
"prod": {
"name": "underlay-prod",
// Each run's errors, limits and cron runs go to Whistle (kf.project.jsonc names this Worker).
"tail_consumers": [{ "service": "kf-whistle" }],
// underlay.org redirects to www in a Cloudflare rule, paths kept (ARK links).
"routes": [{ "pattern": "www.underlay.org", "custom_domain": true }],
"vars": {
Expand Down
Loading