Reverse Proxy Config Generator

Create a starting configuration for NGINX or Caddy. The generator runs in your browser.

Your configuration will appear here.

Review certificate paths and upstream settings for your server before use. Caddy handles WebSocket upgrades automatically.

Try a Sample Scenario

Use app.example.com as the example domain and 127.0.0.1:3000 as the upstream. With TLS and WebSockets off, NGINX produces an HTTP server block with a proxy_pass to the local service. Caddy produces a site block with reverse_proxy 127.0.0.1:3000. Replace both values for your deployment.

Validate Before You Reload

  1. Confirm the upstream responds from the network where your proxy server runs.
  2. Review the site address, WebSocket settings, and whether the upstream expects HTTP. The generator assumes an HTTP upstream.
  3. Run nginx -t or caddy validate --config /path/to/Caddyfile --adapter caddyfile on the host where the file will run. For HTTPS, confirm DNS, certificate paths or automatic certificate requirements before reloading.
  4. Check the deployed URL and compare its application response with the direct upstream. If NGINX returns a 502, follow the NGINX 502 troubleshooting guide.