mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 15:05:00 +00:00
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.
3 lines
24 B
Plaintext
3 lines
24 B
Plaintext
/form2mail
|
|
/form2mail-*
|