Generate Nginx server configurations. A handy utility tool for everyday development tasks.
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff2)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript image/svg+xml;
}Set your desired options or enter data.
Results are generated instantly.
Copy the result or download.
Use the Nginx Config Generator when setting up reverse proxies, configuring SSL termination, serving static sites, or load balancing across backend servers. It is essential for developers and system administrators who need correctly formatted Nginx configurations without memorizing all available directives and syntax rules.
Yes, the Nginx Config Generator is completely free with no restrictions on configuration complexity or number of server blocks. Generate reverse proxy, static file serving, SSL, and load balancing configurations without any cost or signup requirements.
Yes, configuration generation works entirely offline after the initial page load. All Nginx directive assembly happens in your browser using client-side logic. This makes it useful when configuring remote servers without reliable internet access.
All Nginx configuration generation occurs in your browser. Server names, upstream addresses, SSL paths, and proxy targets are never sent to any external server. This protects your infrastructure details and server architecture from exposure during the configuration process.