Skip to main content

Caddy FAQ

ACME DNS Wildcard cert

{
http_port 80
https_port 443

log {
output stdout
level INFO
format console
}

acme_dns acmedns {
config {
# *.examole.com 会让匹配到的域名都使用这里的 配置
"example.com" {
username ""
password ""
subdomain ""
fulldomain ""
server_url "https://auth.acme-dns.io"
}
}
}
}

http://:80 {
respond / "Hello World" 200
}

*.example.com {
@web host web.example.com
handle @web {
respond / "Hi from Web" 200
}

handle {
respond / "Hi from Root" 200
}
}
# caddy-docker-proxy
- caddy=*.example.com
- caddy.1_@foo = host foo.example.com
- caddy.1_handle = @foo
- "caddy.1_handle.reverse_proxy={{ upstreams 8080 }}"