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:
@@ -45,6 +45,12 @@ http {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
# The container healthcheck's target; see nginx.conf.template.
|
||||
location = /nginx-health {
|
||||
access_log off;
|
||||
return 204;
|
||||
}
|
||||
|
||||
# All other requests should return 404
|
||||
location / {
|
||||
return 404;
|
||||
|
||||
Reference in New Issue
Block a user