- Go 55.7%
- TypeScript 18.9%
- JavaScript 10.4%
- HTML 6.1%
- Shell 4.7%
- Other 4.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci/crow/push/build Pipeline was successful
All transcript administration routes require a shared admin passphrase. Editors return to the requested admin page after logging in; unauthenticated edits, imports, and deletes receive `401`. If an editor is logged out, htmx takes them back to login without replaying the request. Public transcript pages and downloads remain accessible without logging in. The server validates the passphrase at startup and on login, using the same rules in both places. It requires 1–100 Unicode code points in valid UTF-8, rejects NUL, and does not change the supplied text. The server requires an explicitly configured authenticator. Admin logins survive deploys and restarts as long as the passphrase stays the same. The server imposes no login timeout and renews the `sharedSecret` cookie on page loads, subject to browser limits. Logging out clears that browser’s cookie; changing the passphrase invalidates all existing logins. For local development, `dev-scripts/serve` sets the admin passphrase to `somepassword`. **Before merging:** Set a strong, randomly generated `ADMIN_PASSWORD` as a Fly app secret. The app will not start without a valid passphrase. Co-authored-by: mike <git@openeasthampton.com> Reviewed-on: #146 |
||
| .crow | ||
| .opencode/skills | ||
| .vscode | ||
| ci | ||
| cmd/app | ||
| dev-scripts | ||
| e2e | ||
| handlers | ||
| store | ||
| testutil | ||
| transcripts | ||
| webvtt | ||
| .air.toml | ||
| .env.example | ||
| .envrc | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| .sqlfluffignore | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| docker-entrypoint | ||
| eslint.config.js | ||
| flake.lock | ||
| flake.nix | ||
| fly.toml | ||
| go.mod | ||
| go.sum | ||
| litestream.yml | ||
| package.json | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
Open Easthampton Transcripts
Open Easthampton Transcripts publishes Easthampton meeting transcripts.
Development
Run dev-scripts/serve and use somepassword to sign in to the local admin pages.
Deployment
Fly.io
Before deploying, set ADMIN_PASSWORD as a Fly app secret. Use a strong, randomly generated password of at most 100 Unicode code points; the app will not start if the password is missing or invalid. Admin logins survive restarts and deploys as long as the password stays the same. The server does not expire logins and renews the cookie when you load a page. Logging out clears that browser’s cookie. Change ADMIN_PASSWORD to invalidate all existing logins.
Crow deploys to Fly.io after tests pass on a push to the default branch and tags the image with the full commit SHA. Configure FLY_API_TOKEN as a repository secret restricted to push events, using a Fly deploy token scoped to the app in fly.toml. In Crow's repository settings, enable Cancel previous pipelines for push events to stop superseded runs.
To deploy manually to Fly.io, replace fly.toml with your own, and provide a Fly API token:
FLY_API_TOKEN='your-api-token' nix run .#deploy-to-fly
The deploy targets the app named in fly.toml. Set FLY_APP to deploy to a differently-named app without editing fly.toml.
Manual deploys tag the image with the current commit's short SHA (git rev-parse --short HEAD). Set DEPLOY_IMAGE_TAG to override it.