After a long time of running Caddy (v1.0.4 now), I notice the acme/acme-v02.api.letsencrypt.org/sites contains a lot of directories for domains that are no longer hosted on the platform.
Judging from the logs, Caddy is trying to renew the domains that are pointing to other A records and hence fail validation.
Should I just make a script that periodically runs through the sites folder and purges the inactive domains?
We use an “ask” endpoint to validate whether a domain should be allowed SSL, but it seems it’s not used for renewals.
I’m also thinking we’ll run into problems when “sites” contains more than 64000 directories due to limits on ext4. But then it’s probably time to switch to a redis/consul backed store anyway.