Caddy安装插件

先安装原版Caddy

官网文档:https://caddyserver.com/docs/install

以安装CloudFlare DNS插件为例

caddy add-package github.com/caddy-dns/cloudflare

Caddyfile使用例子

cszs.net {
    tls {
        dns cloudflare {env.CF_API_TOKEN}
    }
}

插件列表:https://caddyserver.com/download