I have a custom domain (cdnexample.com) and a Firebase Google Cloud Storage Bucket (examplefiles.appspot.com). I want to configure cdnexample.com domain in Cloudflare CDN to source from GCS bucket (examplefiles.appspot.com).
For example, given a GCS File: https://storage.googleapis.com/examplefiles.appspot.com/image1.jpg I want to get the Cloudflare CDN File working: https://cdnexample.com/image1.jpg
The problem is that I cannot change the GCS bucket name (examplefiles.appspot.com) to match my Cloudflare domain name (cdnexample.com). All the solutions I came across below require the GCS bucket name to match Cloudflare domain name and use CNAME configuration with c.storage.googleapis.com
.
I have read through the following relevant articles:
- https://cloud.google.com/storage/docs/request-endpoints
- https://devopsdirective.com/posts/2020/10/gcs-cloudflare-hosting/
- https://community.cloudflare.com/t/using-cloudflare-cdn-https-with-google-cloud-storage/15602
- How to cache google cloud storage (GCS) with cloudflare?
- Using Cloudflare CDN + HTTPS with Google Cloud Storage
- Use CloudFlare to CDN a Google Cloud Storage Bucket
- https://medium.com/@pablo.delvalle.cr/cloudflare-and-google-cloud-for-hosting-a-static-site-fd2e1a97aa9b
Does anyone have an idea of how to make the Cloudflare CDN work in this case?