I am building an application which will provide users with custom pages served under the subdomain within my application domain.
What I want to do as next step is to allow users to create CNAME which can point their subdomain. The issue which I see is to serve them with the valid SSL certificate for their domain. The websites are going to be served by the NextJS, but I believe it would make more sense to take this responsibility to separate service as Caddy.
Is Caddy an viable solution for my case?
How would I have to use Caddy to address this problem?