Add Caddy beside nginx as the replacement edge
caddy/ reproduces nginx's routes, gates, /notes/ privacy denials, uploads (bucket first, then disk), rate limits, real-IP and headers in one shared route table, with certificates obtained over DNS-01 in-process instead of by certbot. Until the cutover it serves nothing public: loopback-only ports 8880/8443, no network aliases, its own address. The image build validates the prod and dev configs, so a broken Caddyfile stops the deploy before any container is replaced (`make check-caddy` is the same build). caddy/edge_test.sh checks the privacy boundary and the gates and prints everything else for diffing nginx against Caddy before switching over. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+18
-1
@@ -14,7 +14,8 @@
|
||||
// pip_requirements python/requirements.txt, requirements-dev.txt
|
||||
// dockerfile every */Dockerfile FROM line
|
||||
// docker-compose every image: in docker-compose*.yml
|
||||
// custom (below) the images deploy.yaml and renovate.yaml `docker run`
|
||||
// custom (below) the images deploy.yaml and renovate.yaml `docker run`,
|
||||
// and the Caddy plugins caddy/Dockerfile compiles in
|
||||
//
|
||||
// NOTHING IS AUTOMERGED, on purpose: a merge to main IS a deploy. Each
|
||||
// Renovate branch is pushed to Gitea, so deploy.yaml's `test` job runs on it
|
||||
@@ -50,6 +51,15 @@
|
||||
matchStrings: ["(?<depName>golang|python|renovate/renovate):(?<currentValue>[0-9][\\w.-]*)"],
|
||||
datasourceTemplate: "docker",
|
||||
},
|
||||
{
|
||||
// The Caddy plugins compiled in by caddy/Dockerfile's `xcaddy build
|
||||
// --with <module>@<version>`. Only versions starting with v match, so
|
||||
// caddy-ratelimit, pinned to a commit, is left for a hand bump.
|
||||
customType: "regex",
|
||||
managerFilePatterns: ["/^caddy/Dockerfile$/"],
|
||||
matchStrings: ["--with (?<depName>[\\w./-]+)@(?<currentValue>v[0-9][\\w.-]*)"],
|
||||
datasourceTemplate: "go",
|
||||
},
|
||||
],
|
||||
|
||||
packageRules: [
|
||||
@@ -103,6 +113,13 @@
|
||||
matchPackageNames: ["python"],
|
||||
groupName: "Python image",
|
||||
},
|
||||
// caddy/Dockerfile's builder and runtime images must be the same release
|
||||
// (the builder compiles the version its image sets), so one PR moves
|
||||
// both, along with the plugins.
|
||||
{
|
||||
matchFileNames: ["caddy/Dockerfile"],
|
||||
groupName: "Caddy",
|
||||
},
|
||||
|
||||
// gqlgen's runtime and gqlparser are versioned together. If a bump breaks
|
||||
// the build, regenerate (`go run github.com/99designs/gqlgen generate`)
|
||||
|
||||
Reference in New Issue
Block a user