Output will appear here
Click in the output to select all text
Output will appear here
Click in the output to select all text
Generate a starter Dockerfile for Node.js, Python, Go, or a static site, with a configurable base image, port, and start command.
Build a Content-Security-Policy header from per-directive source lists (default-src, script-src, style-src, img-src, and more).
Generate a .gitignore file by combining language and editor presets (Node, Python, Java, macOS, VS Code, and more).
This Nginx Config Generator produces a working server block that reverse-proxies requests to a local app — the config most people copy-paste when putting Nginx in front of a Node, Python, or other backend process. Enter your domain and the port your app listens on, optionally include SSL certificate directives (for use with Let's Encrypt/Certbot paths) and a www subdomain, and get a complete, correctly indented config block with the standard proxy headers (X-Forwarded-For, X-Forwarded-Proto, WebSocket upgrade support) already included. It's meant as a solid starting point to drop into /etc/nginx/sites-available/. Everything runs in your browser; nothing about your server is uploaded. Scroll down to configure your options.
Update the SSL certificate paths if you enabled SSL (they assume a standard Let's Encrypt/Certbot layout), and verify the backend port matches where your app actually listens.
Typically in /etc/nginx/sites-available/yourdomain.conf, then symlinked into /etc/nginx/sites-enabled/ and reloaded with `nginx -s reload`.
They forward the original client IP, protocol, and host to your backend app, and the Upgrade/Connection headers allow WebSocket connections to pass through the proxy correctly.
No, it only adds the directives pointing to certificate files; you still need to obtain certificates separately, e.g. via Certbot.
This generates a single-backend proxy_pass block; for load balancing you'd extend it with an nginx `upstream` block listing multiple servers.