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:
@@ -22,8 +22,8 @@ var pageKeyPattern = regexp.MustCompile(`^[a-z0-9]+(-[a-z0-9]+)*(/[a-z0-9]+(-[a-
|
||||
const maxSlugLen = 100
|
||||
|
||||
// reservedFirstSegments are paths a page could never be reached at, because
|
||||
// nginx or one of the SPA's own routes answers them first (see
|
||||
// nginx/nginx_routes.conf.template and vue/src/router/index.js), plus the
|
||||
// Caddy or one of the SPA's own routes answers them first (see
|
||||
// caddy/routes.caddy and vue/src/router/index.js), plus the
|
||||
// landing page's key "index", whose boxes a page of the same slug would
|
||||
// share. "shrines" and "stp" are deliberately absent: /shrines, the shrine
|
||||
// pages under it and the home page /stp are all canvas pages.
|
||||
|
||||
@@ -20,7 +20,7 @@ func TestValidateSlug(t *testing.T) {
|
||||
{"shrines", true}, // the index is a canvas page too
|
||||
{"shrines/demoman", true}, // no longer an SPA route
|
||||
{"admin/pages", false}, // under an SPA route
|
||||
{"jobs/x", false}, // under an nginx route
|
||||
{"jobs/x", false}, // under a Caddy route
|
||||
{"stp", true}, // the home page is a canvas page too
|
||||
{"stp2", false}, // an SPA route
|
||||
{"index", false}, // the landing canvas's key
|
||||
|
||||
@@ -10,7 +10,7 @@ type User {
|
||||
}
|
||||
|
||||
# One grantable service, from services.PermissionTypes: `key` is what is
|
||||
# stored and what nginx gates on, `label` and `path` are for display.
|
||||
# stored and what Caddy gates on, `label` and `path` are for display.
|
||||
type PermissionType {
|
||||
key: String!
|
||||
label: String!
|
||||
|
||||
Reference in New Issue
Block a user