Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase hosting: Needs Setup

I am trying to set custom domain for my firebase app

Firebase hosted url : https://inventory-app-726af.firebaseapp.com/ Custom Domain: inv.agsft.com

I have followed all instructions as part of setting custom domain but after verification step when I click on finish button, status will always be "Needs Setup".

I am managing DNS through cloudflare (https://www.cloudflare.com/) and I am following Quick setup option.

Any pointers to resolve it?

Many Thanks Pari

like image 659
Pari Avatar asked Aug 01 '17 12:08

Pari


People also ask

Can firebase be used for Hosting?

Firebase Hosting provides fast and secure hosting for your web app, static and dynamic content, and microservices.

Is firebase Hosting completely free?

Firebase hosting is free. So, it won't cost you anymore. It by default provides SSL certificate and offers an impressive speed across multiple geographic locations without the need for a separate CDN on top.

How do I remove firebase Hosting setup complete?

Go to Firebase Console and select Hosting from the menu of the left. You will see the deployed project with a list of your historical actions like Deployed , disabled , etc. Only after you have disabled the site, the "three vertical dots" menu will be available for you to choose the action to delete the deployment.

Is firebase Hosting cheap?

Expect to pay about $ 12.14 per month for an app with 50,000 installs and 5,000 daily active users. And about $ 292.02 per month for 1 million app installs and 100,000 daily active users, and approximately $ 2951.52 per month for 10 million app installs and 1 million daily active users.


2 Answers

I had the same problem, I was able to resolve it by toggling the DNS Status on cloudflare from DNS and HTTP Proxy (CDN) to just DNS on the two A records

enter image description here

It started working right away. Hope that helps!

like image 147
brennen Avatar answered Sep 23 '22 14:09

brennen


The proper solution, ie without disabling Cloudflare for the site, is to use Full SSL for your domain/subdomain.

You can either choose Full SSL for all your domain entries, or set up a Page Rule for a specific subdomain, in your case, use "inv.agsft.com/*"

Source: https://community.cloudflare.com/t/flexible-ssl-redirect-loop-with-google-firebase/2063/3, which in turn points to https://support.cloudflare.com/hc/en-us/articles/115000219871-Why-does-Flexible-SSL-cause-a-redirect-loop-

Had the same issue and this solved the redirect issue. Firebase will however still report the domain as "Needs setup", for that I have no solution, but it does not affect the functionality of the hosting.

like image 42
Motin Avatar answered Sep 21 '22 14:09

Motin