DevToolkit

Nginx Reverse Proxy Generator

Back home

Browser only

Nginx Reverse Proxy Generator

Generate Nginx reverse proxy server blocks for self-hosted apps, Docker services, WebSocket apps, and HTTPS setups in your browser.

Example output

server {
    listen 80;
    server_name example.com;
    location / {
        client_max_body_size 50m;
        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_pass http://127.0.0.1:3000;
        proxy_redirect off;
    }
}

Deep dive

More context for Nginx Reverse Proxy Generator

Useful when you want a fast starting point for a reverse proxy without hand-writing every directive, especially for a Docker-backed app.

Overview

What is this tool?

It generates Nginx reverse proxy server blocks in your browser from a domain, upstream target, and optional toggles for WebSocket support, common proxy headers, HTTPS templates, and HTTP-to-HTTPS redirects.

Input samples

Example inputs

Basic reverse proxy

domain: example.com
upstream: http://127.0.0.1:3000
common proxy headers: on
websocket support: off

WebSocket app

domain: app.example.com
upstream: http://app:8080
common proxy headers: on
websocket support: on
client_max_body_size: 100m

HTTPS and redirect

domain: app.example.com
upstream: https://127.0.0.1:8443
common proxy headers: on
websocket support: on
redirect block: on
SSL template: on

When to use it

Common use cases

  • Create a reverse proxy starter config for a self-hosted app or Docker service.
  • Add WebSocket support and common proxy headers without memorizing every directive.
  • Generate a clean HTTPS template with placeholder certificate paths before you request or decode a real certificate.

Navigation

Explore related workflows

Keep moving through the collection, workflow, and adjacent tools that usually belong with this page.

Related workflow

Continue with the tool chain that usually goes together here.

Deploy a self-hosted app

Prepare Docker environment files, volume mappings, reverse proxy snippets, and header checks before you ship a service.

Answers

FAQ

Is this a production-ready Nginx config?

No. It is a best-effort generator, so you should review and adjust the output before using it in production.

Does it support HTTPS upstreams?

Yes. Select https as the upstream protocol and the generated proxy_pass line will use an https upstream URL.

Will it use my real SSL certificate paths?

It uses placeholder paths based on the domain you enter. Adjust the certificate files, server names, and upstream address to match your environment.

What should I check after generating the proxy?

Review the upstream host, port, headers, TLS paths, and redirect block, then verify the response with the header tools.

Disclaimer

Disclaimer / limitation note

This is a best-effort config generator, not a replacement for hands-on review. Check the generated output before production use and adjust the SSL certificate paths, real domain names, upstream service address, and any environment-specific directives to fit your setup. All content is generated locally in your browser and is not uploaded to a server.

Privacy

Privacy note

Generation happens entirely in your browser. No file is uploaded, no login is required, and DevToolkit does not store the values you enter.