losfair/zeroserve — reverse-engineered prompt
Reverse engineered prompt
Build me a fast Linux only web server that feels basically zero setup. I want to point it at a folder, pack that site into one tar file, and then serve it directly without unpacking anything to disk. It should handle plain HTTP and HTTPS, support modern TLS with either a cert and key or a whole cert directory for host based selection, and let me reload the site, certs, and scripts with a signal instead of restarting.
I also want optional per request scripting in a safe sandbox so small scripts can inspect or change requests, return custom responses, do redirects, reverse proxying, rate limiting, auth, and OAuth style login. If there is a site tarball, run its scripts in order, and also support extra plugin scripts before the site ones. It would be great if it can also take a Caddy config and serve that directly.
Please make the common commands easy, include examples and a usable manual, and look up current docs online if you need to.
Want more depth? Deep Reverse