golib/cmd/form2mail
AJ ONeal ac7047c77c
feat(cmd/form2mail): production contact-form server
Wires formmailer + ipcohort + geoip + gitshallow into a long-running
HTTP server. Adds graceful SIGTERM via signal.NotifyContext +
http.Server.Shutdown so deploys complete in seconds instead of waiting
for the systemd 90s SIGKILL. Trusts RFC1918 CIDRs (loopback + 10/8 +
172.16/12 + 192.168/16) for X-Forwarded-For so the upstream TLS router
can pass through the real client IP.

Includes a rename-old-first deploy script (avoids ETXTBSY on running
ELFs), HTML success/error templates that hot-reload from disk on each
request, and a silent-drop spam trap for .ru sender addresses.
2026-09-08 15:28:36 -06:00
..