如何自定义Firebase数据库,身份验证和存储的域名? [英] How to customize domain name of firebase database, auth and storage?

查看:75
本文介绍了如何自定义Firebase数据库,身份验证和存储的域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以为Firebase托管自定义域名. 但是,如何自定义firebase数据库,身份验证和存储域名? 例如.

I know that I can customize domain name for firebase hosting. But how can I customize the firebase database, auth and storage domain name? eg.

authDomain: example.firebaseapp.com => auth.example.com
databaseURL: example.firebaseio.com => db.example.com
storageBucket: example.appspot.com => storage.example.com

我尝试使用域名(例如,将auth.example.com从cname命名为example.firebaseapp.com) 但这会导致 https://auth.example.com 显示证书错误. 我可以解决吗?

I tried to cname the domain (eg cname auth.example.com to example.firebaseapp.com) but this cause the https://auth.example.com shows the certificate error. can I resolve that?

推荐答案

Firebase无法在您自己的域下为我们的服务添加白标.

Firebase doesn't offer the ability to whitelabel our services under your own domain.

您可以选择通过托管+云功能代理所有流量,但这将是大量的额外工作.

You could choose to proxy all traffic through Hosting + Cloud Functions, but that would be a significant amount of additional work.

在这些服务上提供您自己的自定义域有什么需要?

What is the need to offer your own custom domain on these services?

这篇关于如何自定义Firebase数据库,身份验证和存储的域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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