简体   繁体   中英

Connecting subdomain to firebase

I am trying to use dynamic links for firebase using my custom domain link. For the above purpose, I added the custom domain on firebase web hosting, and followed all the steps, but status is still showing as "Needs setup" .

My main domain pointing to some other host, the sub domains pointing to some aws elastic ips, and now the newly created sub domain to firebase ips. The dns provider that i am using is cloudflare.

www.maindomain.com => webflow host

subdomain1.maindomain.com => aws elastic ip 1

subdomain2.maindomain.com => aws elastic ip 2

firebasesubdomain.maindomain.com => firebase ip records (A Records).

I cannot delete all the A records just to point to firebase, since the aws elastic ip's are my live servers serving my customers. So my question is keeping all of the above records intact is there a way to point my subdomain to firebase and transfer only the subdomain's ownership to firebase, where then i can easily create dynamic links for that domain as well?

When connecting a domain to Firebase Hosting, you must ensure your A records are pointing directly to the Firebase IP addresses. You can check this using eg:

dig firebasesubdomain.maindomain.com

If the Cloudflare proxy is turned on, Cloudflare will set the A records to their own IP addresses and Firebase Hosting will not be able to recognize the IPs. You should turn off the Cloudflare proxy, as Firebase Hosting is already serving content over a CDN and proxying will only introduce additional latency.

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