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:
@@ -14,7 +14,7 @@
|
||||
; Gitea generates one itself on first run and writes it into the live app.ini.
|
||||
;
|
||||
; SETTINGS WORTH KNOWING
|
||||
; ROOT_URL must match the public path nginx serves Gitea at (/gitea/), or
|
||||
; ROOT_URL must match the public path Caddy serves Gitea at (/gitea/), or
|
||||
; every link, clone URL and OAuth redirect Gitea emits will be wrong.
|
||||
; START_SSH_SERVER = true with SSH_PORT 2222: the rootless image cannot bind
|
||||
; 22 and cannot use the host's sshd, so Gitea runs its own Go SSH server.
|
||||
@@ -25,10 +25,11 @@
|
||||
; MagicDNS name, not the public domain: SSH
|
||||
; (22 and 2222) is not forwarded by the router, so the SSH clone URL Gitea
|
||||
; shows only works from a device on the tailnet. HTTPS clones go through
|
||||
; nginx at ROOT_URL and stay public.
|
||||
; Caddy at ROOT_URL and stay public.
|
||||
; REVERSE_PROXY_LIMIT = 1 / TRUSTED_PROXIES = * : trust exactly one hop of
|
||||
; X-Forwarded-For, i.e. our nginx, so Gitea logs real client IPs. This is
|
||||
; only safe because nginx is the sole edge.
|
||||
; X-Forwarded-For, i.e. our Caddy, so Gitea logs real client IPs. Caddy
|
||||
; sends a single entry, the visitor (its `proxy` snippet). This is only
|
||||
; safe because Caddy is the sole edge.
|
||||
; INSTALL_LOCK = true skips the first-run web installer.
|
||||
; DISABLE_REGISTRATION = true — single-user instance; nobody can sign up.
|
||||
; OFFLINE_MODE = true — no calls out to gravatar/CDNs.
|
||||
|
||||
Reference in New Issue
Block a user