I'm building a SaaS, and want to allow users to use custom domains. What's the best approach?
I've created a wildcard subdomain in my domain name: *.my-site.com.
I will ask my customers to CNAME their domain to their allotted subdomain.
Then, I'll use Let's Encrypt to issue a certificate for the customer's domain.
Am I missing something?
I'm using Cloudflare for my SaaS domain. And I looked into the Cloudflare SaaS platform, but it just sounds confusing to me. How does it work?
I know my question is really vague, but I'm just looking for some advice from someone who might have done something similar with Cloudflare before or knows the best way to achieve this goal... 🙂
2 Replies
You can make your customer’s life even easier. Unless your application requires them to have a unique subdomain on your domain, you could just get them to CNAME my-site.com and then your application reads the Host header to determine the customer
Cloudflare for Saas is basically the same thing you're describing, they just handle the certificate stuff for you.