DevOps

Nginx Config Generator

Create reverse proxy, SSL, and web server configurations.

Configuration

Nginx configuration guidance

Use this generator as a starting point for a web server or reverse-proxy configuration. Confirm the server name, upstream address, listening ports and certificate paths for your environment before enabling the file.

Reverse proxy basics

A reverse proxy accepts client requests and forwards them to an upstream application. Preserve the headers your application needs and set sensible proxy timeouts for the workload.

HTTPS configuration

Use certificates issued for the hostname being served, keep private keys readable only by the required service account, and test configuration syntax before reloading Nginx.

Safely deploy a change

Save the configuration in the appropriate sites or conf.d location, run nginx -t, and reload rather than restart when a validated change can be applied without dropping connections.