I’m working on a small app that provides a custom page for each user’s projects. I want to add the possibility for them to use custom domains.
The podcast site iconmic.fm offers a similar feature and, apparently, they have a form that lets users sign up to Cloudflare directly just using a domain name and a password. That’s pretty cool and I would like to implement something similar.
Is this actually an acceptable integration to create Cloudflare user accounts like this?
If so, is there a specific endpoint I should use for this (like for affiliate signups only)?
Or would the canonical way be to do this all manually, i.e. call the Cloudflare API to create the user, then to add the URL and finally to configure DNS records for them?
This specific feature (in the elegant way as you described in your third point) is available but sadly only for enterprise customers -
The iconmic.fm looks to be a partner setup (maybe) which is this form - Our Partnerships - but that setup isn’t great for people with existing domains and I’m not 100% sure they’re using this integration.
That’s possible, their domain doesn’t have to be https, but CF issues SSL both almost instantly and for free for the CNAME’d domains so your customers don’t have to worry about it.
My main concern is to make the set-up and configuration process as easy as possible for novice users, who do want their own domain, but do not have the experience or expertise managing their own DNS.