Caddy, or stick with the tried and true, Nginx?

Posted by Unique-Squirrel-464@reddit | sysadmin | View on Reddit | 8 comments

When it comes to SaaS apps, and apps in general, I started out with Apache but then eventually switched over to using Nginx on my servers, it is tried and true, and very fast. However I'm working on a new feature where people can use a custom domain to access one of my apps, so of course that started me down the rabbit hole of how to best accomplish that and how to handle the issuing and renewal of SSL certs. So now I have two paths:

  1. Stick with Nginx, script the addition of the new host to the nginx config, and then handle the issuing of the SSL certs via Let's Encrypt in a queue or scheduled job. Basically check DNS to make sure the customer updated their domain so its pointing at the server, then script the usage of certbot to issue the cert.

  2. Just use Caddy, which has SSL cert issuing built in, no scripting necessary.

My concerns with switching to Caddy is whether it is performant enough in a production environment?

Has anyone else crossed this bridge? What decision did you make? If you went with Caddy, how has performance been and has there been any issues?