Generate production-ready Nginx configuration files instantly with SSL, reverse proxy, caching, and security headers.Perfect for Node.js, Python, PHP, and static sites.
server {
listen 80;
server_name example.com;
client_max_body_size 10M;
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss application/json;
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|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}
Everything you need to configure Nginx for production
Configure proxy pass to your backend applications with automatic headers and WebSocket support.
Enable SSL with TLS 1.2/1.3, configure certificates, and add security headers automatically.
Built-in gzip compression, static file caching, and browser cache control for optimal performance.
Use Server Compass to deploy your applications with automatically configured Nginx reverse proxy.