wip: checkpoint host working tree

Login-page gate, notification outbox dispatcher and cron, assignment
proposals/responses, coverage and training-guide updates, plus the generated
training PDFs. Checkpointed from the host before merging the invite-link fix.
This commit is contained in:
2026-11-22 17:42:51 +00:00
parent fac9b96cca
commit 55239ef1e9
41 changed files with 6873 additions and 455 deletions
+4 -4
View File
@@ -123,7 +123,7 @@ curl -fsS http://localhost:3000/api/health # dashboard
curl -fsS http://localhost:8787/api/health # advanced editor
```
With the default local configuration (`MAGIC_LINK_DEV_TRANSPORT=true`), requesting a sign-in link shows it in the browser and prints it in the app log:
With the default local configuration (`MAGIC_LINK_DEV_TRANSPORT=true`), requesting a sign-in link prints it in the app log:
```bash
docker compose logs -f app
@@ -265,7 +265,7 @@ Copy `.env.example` to `.env`; never commit real secrets (`.env*` is ignored, `.
| `APP_ORIGIN` | Fallback application origin. |
| `CHURCH_TIMEZONE` | Display timezone; scheduling itself stores UTC instants and local dates. Defaults to `America/New_York`. |
| `AUTO_ACTIVATE_NEW_USERS` | `false` (default) sends unknown emails to `pending_approval`; `true` is for dev/test only. |
| `MAGIC_LINK_DEV_TRANSPORT` | Shows/prints the sign-in link instead of emailing it. Defaults on outside production; compose sets `true` for first login. |
| `MAGIC_LINK_DEV_TRANSPORT` | Returns/prints the sign-in link instead of emailing it; the login page never displays it. Defaults on outside production; compose sets `true` for first login. |
| `ALLOW_DEV_RESET` | Enables the destructive `POST /api/dev/reset` endpoint. Must stay `false` in real deployments. |
| `CRON_SECRET` | Bearer/query secret for the cron HTTP routes. Empty means session-only. |
| `POSTMARK_SERVER_TOKEN`, `POSTMARK_FROM` | Optional Postmark fallback and default sender. Admin email settings take precedence. |
@@ -470,7 +470,7 @@ Keep the app on loopback and use an SSH tunnel for this step:
ssh -L 3000:127.0.0.1:3000 you@media.example.org
```
Open `http://localhost:3000/login`, request a link for `admin@glenloch.local`, and read it from the page or from `docker compose logs app`. Then:
Open `http://localhost:3000/login`, request a link for `admin@glenloch.local`, and read it from `docker compose logs app`. Then:
1. Admin → People: change the admin name and email to the real person, and create real accounts.
2. Admin → Services: set real service times, roles, and headcounts.
@@ -483,7 +483,7 @@ Only after that, set `MAGIC_LINK_DEV_TRANSPORT=false` in `.env` and restart:
docker compose up -d app
```
**Do not expose the app publicly while the dev transport is on:** it displays sign-in links in the browser. Keep `APP_BIND=127.0.0.1` until bootstrap is finished.
**Do not expose the app publicly while the dev transport is on:** it can return and log sign-in links during bootstrap. Keep `APP_BIND=127.0.0.1` until bootstrap is finished.
### 6. Reverse proxy and TLS with Caddy