Search code examples
google-cloud-platformgoogle-cloud-storageload-balancingcloudflaregoogle-cloud-run

CloudFlare causing GCP CloudRun and storage bucket to return 404 http code


I was trying to host a simple Cloud Run application on Google Cloud Platform with Cloudflare in front of it. I kept getting 404s on all pages so gave up and switched to using buckets because it's a simple static website.

Cloudflare is pointing to the load balancer static external IP address.

I'm now encountering the exact same issue. I have a load balancer pointing to a GCP bucket with static content. With Cloudflare on, it serves up a 404 error for all pages. With Cloudflare off, it works fine.

What could be the cause of this?


Solution

  • I needed full SSL turned on at Cloudflare's end