简体   繁体   中英

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. Type the entire subdomain name. For example, I would type mysubdomain.domain.tld

  2. Click Continue. Then you'll see a screen prompting you to copy a string for a TXT record. Copy the string and go to your DNS hosting provider panel and add the TXT record there with the string value.

  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.

  4. Once verification is done, you'll see some instructions to add a couple of A records. Add these A records in the DNS hosting providers panel. (please ensure you are not supposed to update any existing records, you need to add new A records.

  5. You will require to setup https certificate in firebase. In Firebase hosting you'll see the status as Connected once everything is in place.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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