I have a static front-end and a compute back-end on the DO App Platform. I’d like to put it behind a Cloudflare Zero Trust Tunnel. I created a Droplet and installed the Cloudflare docker and the tunnel is healthy.
My questions are-
We really like the ease of auto-deploy when the App Platfom is linked up to bitbucket- so I don’t want to have to build an image and host on a droplet.
Any thoughts or best practices are appreciated.
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!
Hey!
If I remember correctly the DigitalOcean App Platform apps don’t live inside your VPC, so you won’t be able to get internal IPs or restrict access via VPC-level controls. That also means you can’t natively route App Platform traffic through your Cloudflare Tunnel the same way you would with a Droplet.
There’s a feature request open for this exact thing, VPC support for App Platform apps and managed services: 👉 https://ideas.digitalocean.com/app-platform/p/vpc-with-apps-droplets-and-managed-databases
Make sure to upvote it!
Until then, one workaround is to place your App Platform backend behind Basic Auth or IP filtering (via headers + app logic), and tunnel via a proxy Droplet using your Cloudflare tunnel setup, though that adds some complexity.
Hope this helps!
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.