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:
@@ -33,6 +33,10 @@
|
||||
# annotated in nginx_routes.conf.template; the rate-limit reasoning is in
|
||||
# nginx.conf.template.
|
||||
# =============================================================================
|
||||
|
||||
# As in production; why is in nginx.conf.template.
|
||||
worker_processes auto;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
@@ -89,6 +93,13 @@ http {
|
||||
listen 80;
|
||||
server_name $DOMAIN www.$DOMAIN;
|
||||
|
||||
# The container healthcheck's target; see nginx.conf.template. Only in
|
||||
# this block, as in production, where it sits in the :80 server too.
|
||||
location = /nginx-health {
|
||||
access_log off;
|
||||
return 204;
|
||||
}
|
||||
|
||||
include /etc/nginx/nginx_dev_common.conf;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user