Reverse Proxy Config Generator
Generate a Caddyfile or Traefik docker-compose labels for a reverse-proxied service — TLS-ready, WebSocket and www-redirect options, rendered locally.
Generate a Caddyfile or Traefik docker-compose labels for a reverse-proxied service — everything rendered locally.
app.example.com {
encode zstd gzip
reverse_proxy 127.0.0.1:3000
}
About Reverse Proxy Config Generator
Pointing a domain at an internal service means writing TLS-aware reverse-proxy config. This tool emits a ready Caddyfile — or Traefik docker-compose labels with the letsencrypt certresolver — for a domain plus upstream host:port.
Options cover WebSocket upstream headers, Caddy encode (zstd/gzip) and a www-to-apex redirect block. Output is generated in your browser and downloadable as Caddyfile or docker-compose.yml.
How to use Reverse Proxy Config Generator
- Enter the public domain and the upstream host:port your service listens on.
- Pick Caddy or Traefik format and toggle WebSocket, compression and www-redirect.
- Copy or download the generated config into your proxy setup.
- For Traefik, merge the labels into your service's docker-compose and ensure the traefik network exists.
Frequently asked questions
Which should I choose — Caddy or Traefik?
Caddy is simplest for a single host (automatic HTTPS out of the box). Traefik shines in Docker/Swarm environments where labels configure routing per container.
Does the Traefik output include TLS?
Yes — labels assume a 'websecure' entrypoint and a 'letsencrypt' certresolver already configured on your Traefik instance.
Why a separate www-redirect block?
Caddy can serve both names, but canonicalizing to one host avoids duplicate content and split analytics.