Firebase Storage上具有SSL的自定义域名 [英] Custom domain name with SSL on Firebase Storage

查看:66
本文介绍了Firebase Storage上具有SSL的自定义域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需将存储桶命名为与我的域名相同的名称,然后将CNAME记录指向c.storage.googleapis.com,就可以将自定义域名映射到我的Firebase Storage存储桶.但是,https不起作用,因为证书上的通用名称不同.我可以上传证书吗,或者甚至可以让GCP或Firebase管理证书?

I was able to get a custom domain name mapped to my Firebase Storage bucket by simply naming the bucket the same name as my domain name and then pointing the CNAME record to c.storage.googleapis.com. However, https doesn't work because the common name on the certificate is different. Is it possible for me to upload a certificate or, even better, have GCP or Firebase manage a certificate?

推荐答案

当前,我们不支持Cloud Storage for Firebase中的自定义域.

Currently we don't support custom domains in Cloud Storage for Firebase.

您有两个选择:

  1. 使用Firebase托管(开发人员生成的内容)
  2. 通过GCS静态托管( docs )进行设置
  1. Use Firebase Hosting (developer generated content)
  2. Set this up via GCS static hosting (docs)

无论哪种情况,您都将失去使用Firebase SDK进行云存储的功能以及其身份验证和授权功能.

In either case though, you'll lose the ability to use the Firebase SDKs for Cloud Storage, as well as it's authentication and authorization functionality.

很高兴了解有关用例的更多信息,以了解我们将来是否应该支持该用例.

Happy to learn more about the use case to see if it's something we should support in the future.

这篇关于Firebase Storage上具有SSL的自定义域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆