Keep nginx serving through a stalled worker, and gate Gitea's crawler targets
On 2026-10-19 nginx's only worker stalled for 4.6 hours. The master kept the container "Up" and the tunnel stayed connected, so nothing noticed, while every request timed out in the TLS handshake. - worker_processes auto in the production and dev configs, so one stuck worker no longer takes the whole site down. - A /nginx-health endpoint on :80 in all three configs, answered by nginx and unlogged, and a compose healthcheck on it. - autoheal is back (retired 2026-10-01), pinned by digest, with no network, restarting only containers labelled autoheal=true: just nginx. - Gitea's commit-pinned views, archives and compare pages go through the site admin gate. A swarm of 103k IPs made 129k requests to them in two days, 89% in those shapes; the branch views stay public for the CV links. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -32,3 +32,7 @@ Watchdog that restarted any container docker marked `unhealthy` (only `backend`
|
||||
and `python` define healthchecks). It mounts the docker socket, which is
|
||||
effectively root on the host. To bring it back, layer
|
||||
`docker-compose.autoheal.yml` the same way as above.
|
||||
|
||||
Since 2026-10-19 it is back in `docker-compose.yml`, watching only containers
|
||||
labelled `autoheal=true` (nginx). This copy is the old `all` variant, kept for
|
||||
reference.
|
||||
|
||||
Reference in New Issue
Block a user