2
New to Caddy - Trying to get a wildcard certificate
(reddthat.com)
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!
Docker is also a bit tricky, because to use a custom binary you need to build a custom image. But if you don't mind manually installing updates it's not too bad.
I had it running but it didn't seem to be issuing wildcards.. but afterwards i realised that whilst i had told it to use the cloudflare API.. i don't think at any stage i'd actually told it to issue wildcards.. i guess i need to figure out how to do that...
I'm questioning my need though really.. i think the docs say it's not recommended unless you're dealing with thousands of subdomains..
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!