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:
@@ -55,7 +55,9 @@ Time budgets
|
||||
Every network path takes an optional `deadline` (a time.monotonic() value).
|
||||
Passing it down instead of using a wall-clock timeout lets a long run degrade
|
||||
gracefully: work already done is returned with summary["truncated"] = True
|
||||
instead of the whole request dying at the nginx 300s proxy timeout.
|
||||
instead of the whole request being cut off by a proxy timeout. (nginx cut at
|
||||
300s; Caddy sets no upstream timeout, but the budgets below still bound a
|
||||
run, and Cloudflare gives up on an origin that sends nothing for 100s.)
|
||||
"""
|
||||
|
||||
import logging
|
||||
@@ -102,8 +104,9 @@ ORIGINS = {
|
||||
# Rough Greater London bounding box for custom "lat,lon" origins.
|
||||
LONDON_BOX = (51.25, 51.75, -0.55, 0.35) # min lat, max lat, min lon, max lon
|
||||
|
||||
# Wall-clock budget for one run_search call. Nginx cuts the connection at
|
||||
# 300s, so stop pricing transport well before that and return what we have.
|
||||
# Wall-clock budget for one run_search call. Set when nginx cut the connection
|
||||
# at 300s: stop pricing transport well before that and return what we have.
|
||||
# Caddy has no such cut, but the budget still keeps a run bounded.
|
||||
SEARCH_DEADLINE_S = 200
|
||||
|
||||
# A date-range scan fetches one Travelodge search per candidate night, then
|
||||
|
||||
Reference in New Issue
Block a user