You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wire up Oban, email change, error pages, CSP, readiness, DB SSL
Six production-readiness fixes to the template:
- Oban: start it in the supervision tree, add the jobs-table migration,
and ship a reference worker (it was configured but never running, so
enqueuing a job would have crashed).
- Email change: link-confirmed flow with a confirmation link to the new
address and a heads-up to the old one. Adds a `sent_to` token column,
Accounts.request_email_change/3 + apply_email_change/2, a Settings
section, and i18n.
- Error UX: branded, self-contained 404/500 pages and a top-level React
ErrorBoundary keyed on the Inertia page.
- Content-Security-Policy: nonce + strict-dynamic in prod, a relaxed
dev profile for LiveReload/LiveDashboard, and a :csp_extra_sources
config seam for third-party origins.
- Health: add a /health/ready readiness probe that checks the DB pool
(the existing /health stays a cheap liveness probe).
- DB SSL: on by default in prod (verify_peer + SNI from DATABASE_URL),
opt out with DATABASE_SSL=false.
0 commit comments