簡體   English   中英

將子域連接到 Firebase

[英]Connecting subdomain to firebase

我正在嘗試使用我的自定義域鏈接為 firebase 使用動態鏈接。 出於上述目的,我在 firebase 虛擬主機上添加了自定義域,並遵循了所有步驟,但狀態仍顯示為“需要設置”

我的主域指向其他主機,子域指向一些 aws 彈性 ips,現在新創建的子域指向 firebase ips。 我使用的 dns 提供商是 cloudflare。

www.maindomain.com => webflow 主機

subdomain1.maindomain.com => aws 彈性 ip 1

subdomain2.maindomain.com => aws 彈性 ip 2

firebasesubdomain.maindomain.com => firebase ip 記錄(A 記錄)。

我不能刪除所有 A 記錄只是為了指向 firebase,因為 aws 彈性 ip 是我的實時服務器,為我的客戶提供服務。 所以我的問題是保持上述所有記錄完整,有沒有辦法將我的子域指向 firebase 並僅將子域的所有權轉移到 firebase,然后我也可以輕松地為該域創建動態鏈接?

將域連接到 Firebase 托管時,您必須確保您的 A 記錄直接指向 Firebase IP 地址。 您可以使用例如:

dig firebasesubdomain.maindomain.com

如果 Cloudflare 代理打開,Cloudflare 會將 A 記錄設置為它們自己的 IP 地址,Firebase 托管將無法識別這些 IP。 您應該關閉 Cloudflare 代理,因為 Firebase 托管已經通過 CDN 提供內容,而代理只會引入額外的延遲。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM