Cut the edge over from nginx and certbot to Caddy
Caddy takes nginx's place in compose: ports 80/443, the fixed address 172.28.255.251 that cloudflared pins the public names to, the network aliases, the healthcheck and the autoheal label. nginx and certbot are removed from compose; Caddy already holds its own certificates in ./caddy/data, obtained while it ran beside nginx. `traffic` now tails logs/caddy/payloads.log, and the dev override switches Caddy to its dev sites instead of putting nginx in DEV_MODE. Docs and comments that described nginx's behaviour now describe Caddy's: CLAUDE.md, DEPLOYMENT.md (topology, boot paths, TLS, rate limits, runbook with a rollback, rough edges), the READMEs, .env.example and the comments in the backend, Python service, Vue source and infra files. nginx/ and certbot/ stay in the repo as the rollback until this has settled. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -10,17 +10,17 @@ import (
|
||||
// service (the receipt printer, say) without being made an admin.
|
||||
//
|
||||
// A permission is a key from PermissionTypes stored in models.User.Permissions.
|
||||
// nginx gates a service on one key by asking GET /auth/validate/<key>
|
||||
// Caddy gates a service on one key by asking GET /auth/validate/<key>
|
||||
// (handlers.Store.ValidatePermission); admins pass every such check, so
|
||||
// moving a service from the admin gate to a permission gate never locks an
|
||||
// admin out. Services that are not listed here stay admin-only.
|
||||
//
|
||||
// Adding a grantable service is one entry below plus swapping that location's
|
||||
// nginx gate from /internal/auth/admin-validate to the permission gate (see
|
||||
// "Permission gate" in nginx/nginx_routes.conf.template).
|
||||
// Adding a grantable service is one entry below plus swapping its route in
|
||||
// caddy/routes.caddy from `import admin_gate` to `import permission_gate
|
||||
// <key>` (the snippet is in caddy/Caddyfile).
|
||||
|
||||
// PermissionType describes one grantable service. Key is what is stored and
|
||||
// what nginx names; Label and Path are for the admin panel's checkboxes and
|
||||
// what Caddy names; Label and Path are for the admin panel's checkboxes and
|
||||
// the signed-in user's /account list of links.
|
||||
type PermissionType struct {
|
||||
Key string
|
||||
|
||||
Reference in New Issue
Block a user