我有一个自定义域 (cdnexample.com) 和一个 Firebase Google Cloud Storage Bucket (examplefiles.appspot.com)。我想将 Cloudflare CDN 中的 cdnexample.com 域配置为来自 GCS 存储桶 (examplefiles.appspot.com)。
例如,给定一个 GCS 文件:https ://storage.googleapis.com/examplefiles.appspot.com/image1.jpg我想让 Cloudflare CDN 文件正常工作:https ://cdnexample.com/image1.jpg
问题是我无法更改 GCS 存储桶名称 (examplefiles.appspot.com) 以匹配我的 Cloudflare 域名 (cdnexample.com)。我在下面遇到的所有解决方案都要求 GCS 存储桶名称与 Cloudflare 域名匹配,并将 CNAME 配置与c.storage.googleapis.com
.
我已阅读以下相关文章:
- 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
- 如何使用 cloudflare 缓存谷歌云存储(GCS)?
- 将 Cloudflare CDN + HTTPS 与 Google 云存储结合使用
- 使用 CloudFlare 对 Google Cloud Storage Bucket 进行 CDN
- https://medium.com/@pablo.delvalle.cr/cloudflare-and-google-cloud-for-hosting-a-static-site-fd2e1a97aa9b
有没有人知道如何使 Cloudflare CDN 在这种情况下工作?