简体   繁体   English

如何为firebase项目设置子域,该域已在谷歌注册

[英]How to setup subdomain for firebase project, The domain is registered with google

我在谷歌拥有一个域以及如何为 Firebase 托管设置子域

The process is straight forward.这个过程是直接的。 below are the steps -以下是步骤 -

  1. Go to firebase, click Hosting, and click Connect Domain.转到 firebase,单击托管,然后单击连接域。 Type the entire subdomain name.键入整个子域名。 For example, I would type mysubdomain.domain.tld例如,我会输入mysubdomain.domain.tld

  2. Click Continue.单击继续。 Then you'll see a screen prompting you to copy a string for a TXT record.然后您会看到一个屏幕,提示您复制 TXT 记录的字符串。 Copy the string and go to your DNS hosting provider panel and add the TXT record there with the string value.复制字符串并转到您的 DNS 托管服务提供商面板,并在那里添加带有字符串值的 TXT 记录。

  3. Once DNS propagation is in place, Go back into Firebase hosting click Connect Domain, and enter the same subdomain name mysubdomain.domain.tld and click Verify. DNS 传播到位后,返回 Firebase 托管,单击“连接域”,输入相同的子域名mysubdomain.domain.tld ,然后单击“验证”。

  4. Once verification is done, you'll see some instructions to add a couple of A records.验证完成后,您将看到一些添加几条 A 记录的说明。 Add these A records in the DNS hosting providers panel.在 DNS 托管提供商面板中添加这些 A 记录。 (please ensure you are not supposed to update any existing records, you need to add new A records. (请确保您不应该更新任何现有记录,您需要添加新的 A 记录。

  5. You will require to setup https certificate in firebase.您将需要在 firebase 中设置 https 证书。 In Firebase hosting you'll see the status as Connected once everything is in place.在 Firebase 托管中,一旦一切就绪,您将看到状态为“已连接”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM