Caddy FAQ
约 1 分钟阅读
标签:FAQ
禁用自动证书
{
auto_https off
}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 }}'- caddyserver.com/docs/caddyfile/patterns
- lucaslorentz/caddy-docker-proxy#581GitHub Issuelucaslorentz/caddy-docker-proxy#581
ZeroSSL ACME
{
acme_ca https://acme.zerossl.com/v2/DV90
email [email protected]
}{
acme_ca https://acme.zerossl.com/v2/DV90
acme_eab {
key_id $ACME_EAB_KEY_ID
mac_key $ACME_EAB_MAC_KEY
}
}tls [email protected] {
ca https://acme.zerossl.com/v2/DV90
}tls {
ca https://acme.zerossl.com/v2/DV90
eab <key_id> <mac_key>
}could not determine the zone for: unexpected response code 'SERVFAIL'
DNS 有问题
loading initial config: loading new config: creating storage value: context deadline exceeded
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub2 条
- libdns/acmednsgithub.com/libdns/acmedns
- lucaslorentz/caddy-docker-proxy#581github.com/lucaslorentz/caddy-docker-proxy/issues/581
其他外链2 条
- caddy.community/t/using-zerossls-acme-endpoint/9406caddy.community/t/using-zerossls-acme-endpoint/9406
- caddyserver.com/docs/caddyfile/patternscaddyserver.com/docs/caddyfile/patterns