Nginx Config Generator
Pick a use case, fill in the blanks, and get a correct nginx server block: reverse proxy with WebSocket headers, static site with caching, SSL redirect, rate limiting, or SPA history fallback.
About this tool
Every template here is the configuration I actually deploy: reverse proxies carry the full forwarded-header set (Host, X-Real-IP, X-Forwarded-For, X-Forwarded-Proto) plus the HTTP/1.1 upgrade pair WebSockets need; the rate-limit template calls out that limit_req_zone only works in the http {} context, which is the mistake that produces the classic "directive is not allowed here" error.
It generates a starting point, not a full hardening pass — no fine-tuned buffers, no per-app timeouts, no security headers beyond the basics. Test with nginx -t before reloading, and adjust paths and ports to your server. Nothing you type leaves the page.