Re:Show HN: Caddy 2
by purerandomness on Tuesday May 05, 2020 @12:31PM
(#23081819)
No no, you should totally use separate certificates (for our SaaS that's crucial, otherwise we would let our competitors know who our entire client base is, if all the domains would be included in one certificate)
I don't know too much about certbot's nginx plugin, I don't use it and don't see the benefit to be honest, we ran into problems with it (it didn't work for us because our clients have to set up a CNAME DNS entry, and that domain has to be included in the certificate)
We simply run certbot without the nginx plugin, and then have a config template for new virtual servers in nginx, based on a template. Certbot's nginx plugin would mess with our config constantly, changing from version to version, leaving artifacts, and we didn't like that.
Thanks for the advice! I'll look at it all on the weekend.
Re:Show HN: Caddy 2
by purerandomness on Tuesday May 05, 2020 @01:33PM
(#23082539)
Good luck! I'd also recommend splitting the config into multiple files, like it has been best practice for the last decades [1] (link goes to Arch (which I also recommend using) but the advice is not Arch specific)
[1] https://wiki.archlinux.org/index.php/Nginx#Managing_server_e...
Does the nginx autoconfiguration allow separate certificates, or do you simply say "don't use that"?