nginx Config Builder

Generate a reverse-proxy or static-site nginx server block.

server {
    listen 80;
    server_name example.com;

    location / {
        proxy_pass http://127.0.0.1:3000;
        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;
    }
}

About this tool

Common nginx configurations from a form — reverse proxy (with proxy headers) or static-site (with HTML5 fallback).

An unhandled error has occurred. Reload ×