Question

Need a proper tutorial for app platform custom domain

I am not from a networking background and trying to make sense with App Platform custom domain, my nameserver is manage by Digital Ocean and when I try to create a custom domain with app platform it ask me to create a CNAME and I dunno where to start so I read a bunch of tutorial to try to make sense of how to create a CNAME in Digital Ocean end up I finally done it and now it show this Error 1001 from Cloudflare network. I didn’t ever set up a Cloudflare before and wanted to try this App Platform. Please help …


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

To create a CNAME in your DigitalOcean managed domain, first visit the Networking Tab within the DigitalOcean Cloud Control Panel, then select your zone from the list. Just below “Create New Record” on your zone-management page, click “CNAME”. In the hostname, put the subdomain you’re looking to create. For example, if you are trying to configure www.example.com, the hostname box should say “www”. In the next box (titled “IS AN ALIAS OF”) put your app’s full ondigitalocean.app URL. This should be something like “example-app-123456.ondigitalocean.app”. Then click “Create Record”.

Once this is complete, return to your apps control panel, select the app, and click “Settings”. Click “edit” network to the Domains line and then if the domain you’re adding isn’t already listed click “+ Add Domain”. Enter the full domain (www.example.com in the example above) and click “Add Domain”. Once this process is complete, the domain should be active in approximately 60 minutes.

If you’re seeing CloudFlare Error 1001 it’s possible you missed adding the domain to your app–the second set of steps above. DigitalOcean App Platform uses the CloudFlare network to provide CDN functionality and to protect your website from some threats.