Nginx Config Generator
Build a static site or reverse proxy Nginx server block.
About this tool
Builds a ready-to-adapt Nginx server {} block for either a static site or a reverse proxy in front of another app (Node, Python, etc.), with optional HTTPS and gzip compression. Drop the result into your Nginx sites-available config and adjust the paths/ports for your setup.
Everything is generated locally in your browser — nothing is uploaded.
Frequently asked questions
- Do I need to fill in real SSL certificate paths?
- The HTTPS block includes placeholder
ssl_certificatepaths — replace them with your actual certificate and key file locations (for example, ones issued by Let's Encrypt/certbot) before using this config. - What's the difference between "static site" and "reverse proxy"?
- Static site serves files directly from a folder on the server (Nginx reads and returns them itself). Reverse proxy forwards incoming requests to another running application (on a different port or server) and returns its response — used when Nginx sits in front of a Node.js, Python, or other app server.
- Is this a complete, production-ready config?
- It's a solid starting point covering the most common needs, not an exhaustive production config — review it against your actual security, caching, and logging requirements before deploying.