Use Caddy as programmable proxy for multiple domains served by single single backend?

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?

Yep, that’s what On-Demand TLS is for

1 Like

Wow! That’s just awesome! Thank you. I did not find this feature while going through the docs.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.