fix(proxy): pin public resolvers on caddy so ACME DNS-01 works
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m32s
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m32s
The LAN resolver (OPNsense Unbound) is authoritative for ginnoir.com via the
split-horizon override, but its local-zone holds only A records, so
`SOA ginnoir.com` returns NODATA. certmagic's zone lookup walks up the label
chain hunting for an SOA, finds none at ginnoir.com, climbs to `com.`, and asks
Cloudflare for a `com` zone:
adding temporary record for zone "com.": expected 1 zone, got 0 for com.
Every DNS-01 renewal has failed for ~17 days (attempt 91 on the oldest), and
Caddy fell back to the LE staging endpoint. Certs began expiring as they rolled
off: 5etools (-4d), files (-1.9d), auth (-15.6h), fam (-15.6h), with ~20 more
queued behind them.
The expired auth.ginnoir.com cert is what broke Nextcloud SSO: its server-side
discovery fetch fails TLS verification ("certificate has expired"), and
user_oidc's LoginController catches that and returns 404 "provider unreachable".
Browsers were unaffected because they let you click through an expired cert;
PHP/curl does not.
Pinning 1.1.1.1/1.0.0.1 on the caddy container sends the SOA lookup to public
DNS. Verified Docker's embedded resolver still serves container names and the
gitea.ginnoir.com alias, which take priority over the external servers.
Also corrects the imgstudio comment, which credited its working TLS to avoiding
a "false .com" in the hostname. The actual reason was its explicit `resolvers`
line -- the same fix, applied to one site.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -401,8 +401,13 @@ webui.ginnoir.com {
|
||||
|
||||
# ComfyUI node editor — inference runs on the Mac at 192.168.1.121 (Metal/MPS).
|
||||
# LAN/tailnet only; no Authentik (WebSocket queue/progress breaks under forward_auth).
|
||||
# Hostname imgstudio (not comfyui): _acme-challenge.comfyui.ginnoir.com embeds a
|
||||
# false ".com" that breaks Cloudflare DNS-01 zone lookup.
|
||||
#
|
||||
# The explicit `resolvers` below is what made DNS-01 work here, not the imgstudio
|
||||
# hostname (an earlier comment blamed a "false .com" in comfyui.ginnoir.com —
|
||||
# that was wrong). The LAN resolver returns NODATA for `SOA ginnoir.com`, so
|
||||
# certmagic's zone lookup climbs to `com.` and Cloudflare rejects it. The caddy
|
||||
# container now pins public resolvers stack-wide (stacks/proxy/docker-compose.yml),
|
||||
# making this block redundant; kept as belt-and-braces.
|
||||
imgstudio.ginnoir.com {
|
||||
import internal_only
|
||||
tls {
|
||||
|
||||
Reference in New Issue
Block a user