I have a SaaS application that needs to offer my users the option to use their own domain. APP Platform allows you to add multiple domains. I’ve been thinking about creating an automation to add the user’s domain through the Digital Ocean API and asking them to create a CNAME for my app.
Is this scenario recommended? Is there a domain limit?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi Marcio,
Yes, that setup works well. You can use the App Platform API to add user domains automatically, then have customers create a CNAME to your app. App Platform will handle verification and SSL once DNS is set.
There’s no strict published limit on domains, but it’s fine for most SaaS multi-tenant use cases. If you expect very large scale, I’d check with DO Support for guidance.
Yes, you can set up custom domains for your clients using an App Platform. Clients point their domain (via CNAME or A record) to your app, you verify domain ownership (often with a DNS TXT record), and issue an SSL certificate (usually automated with Let’s Encrypt). Your platform must support custom domains, SSL for each one, and route requests based on the domain. Common issues include DNS propagation delays, SSL errors, and restrictions on root domains.
Heya, @marciogaleno
DigitalOcean doesn’t document a strict per-app domain cap, so for most SaaS scenarios, this pattern works without issue. If you anticipate onboarding hundreds or thousands of domains, it’s worth raising a support ticket to confirm scaling guidance and certificate issuance limits.
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.