Nginx Config
Generator.
Production-grade Nginx server blocks for any domain. Optimized for MERN stack, WebSockets, and automatic SSL deployment.
Configure Proxy
Input your server details to generate a production-ready Nginx block.
Validates headers, WebSocket support, and caching defaults automatically.
Live Preview
Real-time generated configuration
server {
listen 80;
server_name api.example.com;
location / {
proxy_pass http://localhost:4000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}Deployment Guide
Follow these steps to deploy your configuration manually.
Config
Connect to your server via SSH and execute the following command to proceed with this configuration step.
Deep Dive:
Server Blocks.
An Nginx server block is a configuration that enables hosting multiple domains on a single server, defining how each request is routed and secured.
SSL Ready
Built-in Certbot commands for HTTPS.
Fast Proxy
Optimized for Node.js and WebSocket apps.
Multi-Domain
Scale easily with clean configurations.
Why automate Nginx?
Manual configuration leads to human error. A single missing semicolon or an incorrect proxy header can cause deployment downtime. This tool uses industry-standard boilerplate that ensures:
- WebSocket Support: Automatic configuration of
UpgradeandConnectionheaders. - Proxy Buffering: Sensible defaults for high-performance data streaming.
- Security: Clear separation of
sites-availableandsites-enabled.
OSS Collaboration
Contribute on Github
Found a bug or want a feature? Help us improve this tool.