Question

Darshan Hiranandani : What steps are involved in connecting DigitalOcean's App Platform with Cloudflare?

Hii I’m Darshan Hiranandani, Could someone please outline the steps required to connect DigitalOcean’s App Platform with Cloudflare?


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.

Bobby Iliev
Site Moderator
Site Moderator badge
March 21, 2024

Hey!

The DigitalOcean App Platform utilzies Cloudflare by default. So there should be no need for you to connect your App with your personal Cloudflare account.

Feel free to share more information about the exact setup that you are after and I will be happy to provider you with more guidance!

If you are only after managing your DNS via Cloudflare, you could follow these steps:

  1. Set up your domain on Cloudflare:

    • Sign up or log in to your Cloudflare account.
    • Add your domain to Cloudflare by following the on-screen instructions. Cloudflare will scan your domain’s DNS records.
    • Update your domain’s nameservers to point to Cloudflare. This change is made at your domain registrar’s website. Cloudflare will provide the nameserver details.
  2. Configure SSL/TLS encryption:

    • In your Cloudflare dashboard, navigate to the SSL/TLS section.
    • Ensure that your encryption mode is set to “Full” or “Full (strict).” This ensures encrypted traffic between Cloudflare and DigitalOcean.
  3. Add DNS records in Cloudflare:

    • Go to the DNS section of your Cloudflare dashboard.
    • Add a CNAME record pointing your domain (or subdomain) to your DigitalOcean App Platform app. The target will be the default domain provided by DigitalOcean for your app, e.g., your-app.ondigitalocean.app.
  4. Configure your DigitalOcean App Platform app:

    • Log in to your DigitalOcean dashboard and navigate to your App Platform app.
    • Go to the “Settings” tab of your app.
    • Under “Domains,” add your domain (the one you’ve set up on Cloudflare). Follow the prompts to verify domain ownership if required.

Let me know how it goes!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel