How to proxy app through Cloudflare?

I need setup my app behind Cloudfare. I have a ton of redirects Cloudflare currently does for my domain and I ned to create a lot more when my app goes live.

Are there any articles/guides on how to handle this? I’ve done this many times with other sites, but this is my first Bubble app. I have lots of questions:

  1. What is best practice for setting up Cloudflare with a Bubble app?
  2. Do I even need to setup a domain, or could I just us CNAMEs to point to the Bubble subdomain? Or should I create a domain like https://app.example.com and set this up in Bubble, and point my CNAMEs there?
  3. Can I lock down my Bubble app to specific Cloudflare whilelist IPs?

Thank you.

I tried following chat gpt guide on something similar for cloudflare, you should give it a try, with a very specific promt you can get every information you need :slight_smile: