🟢 Caddyfile Generator

Visual Caddy server config builder: reverse proxy, static sites, auto HTTPS, redirects

Zero Dependencies · Works Offline

📋 Site Configuration

Basic Settings

HTTPS & Security

Logs & Caching

Caddyfile Generatorcan what?

Caddyfile Generatoris Free OnlineCaddy WebserverconfigTools,throughcanvisualization side userFastGenerate Caddyfileconfigfile。supportsReverse Proxy、Static Site、HTTPSautodynamicCertificate、HTTPRedirect、Compression、logetccommonuseconfig。CaddywithAuto HTTPS ,localToolsletconfigmoreSimple。AllGenerateinBrowsetoolLocalcomplete。

Core Features

How to Use

1. InputDomain,SelectSite Type(Reverse Proxy/Static Site/Redirect)。

2. writeBackend AddressorSite RootetcParameters。

3. configHTTPS、Compression、logetcOptions。

4. click"Generate Caddyfile",CopyorDownloadconfigfile。

5. 5. Place Caddyfile in Caddy config directory, run caddy run to start.

Use Cases

scenario1:FastdeployReverse Proxy

open needwillDomain toLocalservice(such asNode.js/PythonApply),usethisTools keyGenerateReverse Proxyconfig。

scenario2:Static Site

frontendopen deploystatic network ,configCaddyprovidesfileserviceandAuto HTTPS,thanNginxconfigmoresimple 。

scenario3:Domainmigrate

network more Domainwhen,GenerateredirconfigwilloldDomainstream RedirecttonewDomain,protected SEO heavy。

Technical Background

CaddyisGolanguageencodewrite Webserver, advantageisAuto HTTPS(throughACMEprotocolautodynamic PleaseLet's EncryptCertificate)。Caddyfile simple : pointblockwith openhead, withaboutkeycharopenhead。commonuse :reverse_proxy(Reverse Proxy)、root(rootdirectory)、file_server(fileservice)、encode(Compression)、redir(Redirect)、log(log)。Caddy v2supportsJSONconfigandAPI ,fitcombinedcontainerizedeploy。Compared to Nginx, Caddy has simpler config but slightly lower performance, ideal for small/medium projects and dev environments.

❓ FAQ

What is a Caddyfile?

A Caddyfile is the Caddy web server configuration file using concise declarative syntax to define site behavior like reverse proxy, static file serving, and HTTPS certificate management.

How does Caddy auto-HTTPS work?

Caddy automatically obtains and renews TLS certificates via Let's Encrypt. Just use a domain name in Caddyfile and Caddy handles certificate provisioning and renewal.

Can I use the generated Caddyfile directly?

Yes. The generated Caddyfile follows Caddy syntax conventions. Save and run caddy run to start. Test in staging first.

Is my data safe?

Absolutely safe. All configuration is generated locally in your browser. No data is uploaded.

What's the difference between Caddy and Nginx?

Caddy has auto-HTTPS and simpler config; Nginx has higher performance and a more mature ecosystem. Caddy suits small/medium projects; Nginx excels at high concurrency.

How to configure multiple sites?

Define multiple site blocks in Caddyfile, each starting with a domain name.

Does Caddy support WebSocket?

Yes. The reverse_proxy directive automatically handles WebSocket connection upgrades without extra configuration.

Caddyfile Generator · Pure FrontendLocalprocess · Data notUploadserver

Feedback: dexshuang@google.com