I’ve been trying to get a wildcard certificate for my domain for use in Caddy…
i’ve got caddy installed and working fine but it seems i need to build caddy manually to include the cloudflaredns module?
My issue is that i installed caddy using apt… so i’m not really sure what i’m meant to do now…
Does anyone have any suggestions?
It will only issue wildcards if you have any sites named like
*.yourdomain.com
, i.e. it needs to see the*.
to know to issue wildcards.The relevant parts of my Caddyfile look like this:
The
(alias)
snippet at the top is used in the site block to tell it how to use a particular subdomain.(I’ve removed some Authelia stuff and handling the apex domain)
{$DOMAIN}
fills in my base domain from the environment, and{env.*}
does the same for my credentials (but without putting it in the JSON config).Amazing… .thank you!