Nginx Config Generator
Generate Nginx server-block configs with toggles for SSL, reverse proxy, static files, gzip, rate limiting, and security headers. 100% in your browser.
34 lines
About Nginx Config Generator
Toggle the features your site needs, including SSL, a reverse proxy to a backend port, static file serving, gzip compression, rate limiting, and common security headers. The tool builds a matching Nginx server block that you can copy into your sites-available configuration.
The configuration is generated in your browser, so none of your server details are sent anywhere. After copying, adjust the server_name, file paths, and certificate locations for your environment, then test the config with nginx -t before reloading the service.
Frequently asked questions
- Where does the generated config go?
- Typically in a file under sites-available, then symlinked into sites-enabled, or directly inside the http block of nginx.conf.
- How do I apply the config safely?
- Run nginx -t to check the syntax, then reload Nginx so it picks up the changes without dropping connections.
- Does this set up SSL certificates?
- No. It writes the SSL directives, but you still obtain certificates separately, for example with a tool like Certbot.