π’ Caddy Config Generator
π Site Basic Settings
What Can the Caddy Config Generator Do?
The Caddy Config Generator is a free online tool that helps developers and sysadmins quickly generate Caddy server Caddyfile configuration through a visual interface. It supports reverse proxy, auto HTTPS certificate management, load balancing, URL rewriting, access control, and rate limiting. All computation happens on your device β Site Address, Listen Port and other inputs stay in your browser with zero data upload.
Core Features
- Auto HTTPS: Caddy's built-in ACME client automatically obtains and renews Let's Encrypt certificates with zero configuration
- Reverse Proxy: Configure reverse_proxy to forward requests to backend services with WebSocket, health checks, and custom headers
- Load Balancing: Multi-backend load balancing with round robin, least connections, and IP hash strategies
- URL Rewriting: Visual redir and rewrite rule configuration β remove www, trailing slashes, custom path mapping
- Security Controls: Basic Auth, IP allowlisting, and rate limiting to protect your site
How to Use
1. Enter your site address (domain or IP:port)
2. Choose HTTPS mode: auto certificate, internal CA, or manual
3. For reverse proxy, enable and configure backend URL and load balancing
4. Configure rewrite rules, access control, and security options
5. Set log format and custom directives
6. Click "Generate Config" to preview the Caddyfile, then copy or download
Use Cases
Case 1: Web Application Deployment
Quickly generate Caddy config to reverse proxy your domain to Node.js/Python/Go backends with automatic HTTPS certificates.
Case 2: Microservice Gateway
Configure multiple backends for load balancing with health checks to ensure service availability.
Case 3: Static Site Hosting
Configure file_server directive to host static files with auto HTTPS and custom response headers.
Case 4: API Gateway
Configure path rewriting and reverse proxy to route API requests to different microservices with rate limiting.
Technical Background
Caddy is a modern web server known for automatic HTTPS and clean Caddyfile syntax. Compared to Nginx/Apache, Caddy's configuration is more concise and intuitive, with no manual SSL certificate management needed. Caddy 2.x is written in Go, offering excellent performance and modular extensibility. The Caddyfile uses directive-based syntax where each directive occupies one line, and block directives are wrapped in curly braces. The reverse_proxy directive supports active/passive health checks, request rewriting, and response handling. Let's Encrypt manages certificate lifecycles through the ACME protocol; Caddy defaults to HTTP-01 validation but also supports DNS-01 and TLS-ALPN-01.
β What can the Caddy Config Generator do?
Generates Caddy server Caddyfile configuration through a visual interface. Supports reverse proxy, auto HTTPS, load balancing, rewrite rules, and access control.
β Does it support auto HTTPS?
Yes. Caddy's built-in ACME client automatically obtains and renews Let's Encrypt certificates.
β Does it support load balancing?
Yes. Configure multiple backends with round_robin, least_conn, or ip_hash strategies.
β Can the generated Caddyfile be used directly?
Yes. Generated configs follow Caddy 2.x syntax standards and can be used immediately.
β Does it support WebSocket proxy?
Yes. Caddy's reverse_proxy supports WebSocket upgrades by default.
β Does this tool upload my data?
No. All config generation is done locally in your browser. No data is sent to any server.