Files
stpweb/.deprecated
adamfandClaude Opus 5.5 66db14d0c5
Test and deploy / deploy (push) Successful in 37s
Test and deploy / test (push) Successful in 1m13s
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]>
2026-10-19 19:15:38 +01:00
..

.deprecated

STATUS: nothing in here is live. No compose file, nginx template or script references this directory. It is kept, not deleted, in line with the repo's "legacy is kept" convention; the full history is also in git.

quartz/

The static-site build that used to serve /notes/. Replaced by the read-only silverbullet-public service (PR #6). Its compose service and nginx route were removed at that point; only the build context survives here.

hasura/

Admin-only DB console that was proxied at /hasura/.

  • docker-compose.hasura.yml — the service, verbatim.
  • nginx-locations.conf — the upstream variable and location blocks that were in both nginx.conf.template and nginx_dev_common.conf.template.

To bring it back: layer the compose file (docker compose -f docker-compose.yml -f .deprecated/hasura/docker-compose.hasura.yml up), paste the nginx blocks back into both templates, re-add ${HASURA_HOST} ${HASURA_PORT} to ENVSUBST_VARS in nginx/entrypoint.sh, and set HASURA_HOST, HASURA_PORT and HASURA_GRAPHQL_ADMIN_SECRET in .env. Dev mode additionally set HASURA_GRAPHQL_ENABLE_CONSOLE and HASURA_GRAPHQL_DEV_MODE to "true".

autoheal/

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.