Development

Nginx Reverse Proxy Generator

Generate Nginx reverse proxy configurations with TLS, WebSocket support and security headers.

Proxy templates

Start from a Node API, WebSocket application, HTTPS site or Docker service.

Server block

Configure the public hostname, listen port and generated filename.

Upstream application

Configure the internal service receiving proxied requests.

Proxy behavior

Configure forwarding headers, WebSocket support and response buffering.

Timeouts and request size

Configure upstream timeouts and the maximum accepted request body.

TLS

Configure HTTPS certificates and optional HTTP-to-HTTPS redirection.

Custom proxy headers

Add additional proxy_set_header directives.

No configuration issues detected

The current rules did not detect obvious reverse proxy problems.

Generated Nginx configuration

Copy or download the generated site configuration.

api.example.com.conf
server {
    listen 80;
    server_name api.example.com;

    client_max_body_size 10m;

    gzip on;
    gzip_vary on;
    gzip_types text/plain text/css application/json application/javascript application/xml;

    add_header X-Content-Type-Options "nosniff" always;
    add_header Referrer-Policy "strict-origin-when-cross-origin" always;
    add_header X-Frame-Options "SAMEORIGIN" always;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        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_connect_timeout 60s;
        proxy_send_timeout 60s;
        proxy_read_timeout 60s;
        proxy_buffering on;
    }
}

Activation commands

Install, test and reload the generated Nginx site configuration.

Terminal commands
sudo cp api.example.com.conf /etc/nginx/sites-available/api.example.com.conf
sudo ln -s /etc/nginx/sites-available/api.example.com.conf /etc/nginx/sites-enabled/api.example.com.conf
sudo nginx -t
sudo systemctl reload nginx

Nginx configuration is generated locally inside your browser. Always run nginx -t before reloading a production server.

About this tool

What is Nginx Reverse Proxy Generator?

Generate production-ready Nginx reverse proxy configurations for APIs, Docker containers, web applications and WebSocket services.

Features

Built for fast developer workflows

  • Generate complete server blocks.
  • TLS configuration.
  • HTTP → HTTPS redirects.
  • WebSocket support.
  • Security headers.
  • Gzip configuration.
  • Timeout configuration.
  • Client upload limits.
  • Proxy buffering.
  • Custom proxy headers.
  • Configuration validation.
  • Installation commands.

Frequently asked questions

Questions about Nginx Reverse Proxy Generator

Does this install Nginx?

No. It only generates configuration files.

Does it support Let's Encrypt?

Yes. Simply point the certificate paths to your Let's Encrypt files.

Can I proxy Docker containers?

Yes. The upstream host can be any Docker service name.

Related tools