Files
casjay 7e137b3d08
gitea / release-gitea (push) Successful in 8m1s
🩹 Fix healthcheck to verify real HTTP response, not just process/port 🩹
Adds a hand-crafted env fragment so the Docker HEALTHCHECK actually
confirms Forgejo is serving HTTP, not just that its process exists and
its port shows up in netstat. Found via a beta-test pass: a container
could report "healthy" for a brief window right after `docker restart`
while external requests still got connection resets.

- rootfs/usr/local/etc/docker/env/10-healthcheck.sh: new hand-crafted
  env fragment (sourced by entrypoint.sh on every invocation, including
  the HEALTHCHECK probe) that sets HEALTH_ENDPOINTS to Forgejo's own
  /api/healthz endpoint, so entrypoint.sh's healthcheck case performs a
  real curl -f check via __curl in addition to its existing process and
  port checks. No [generated] file touched.
- TODO.AI.md: updated the healthcheck TODO entry to record this fix and
  what it verified, and to note a residual, out-of-scope-here gap — the
  Dockerfile's HEALTHCHECK --interval=5m means Docker can still show a
  stale "healthy" status for up to 5 minutes after a restart even with
  a correct check; closing that needs a shorter --start-interval on the
  generated HEALTHCHECK line, which must be changed upstream in the
  gen-dockerfile template repo, not here.
2026-09-09 00:42:12 -04:00
..