Home > other >  Firebase hosting sub-domain limit
Firebase hosting sub-domain limit

Time:09-17

I am looking to host multiple sites using firebase but have read something that could cause problems.

Each custom domain is limited to having 20 subdomains per apex domain, due to SSL certificate minting limits.

https://cloud.google.com/storage/docs/hosting-static-website

I was hoping to use subdomains, e.g. a.example.com, b.example.com ...etc.

This limit of 20 domains seems quite restrictive and I have some questions

  1. If I create separate projects for each subdomain does this limit still apply? e.g. have 1 firebase project with a hosting site for a.example.com and have a entirely separate firebase project for hosting b.example.com.

  2. I have also read you can hosting using cloud storage and a load balancer. https://cloud.google.com/storage/docs/hosting-static-website. Does this provide an automatic certificate or is it manual?

  3. Does the limit of 20 subdomains apply only to firebase hosting or does it also apply to hosting via cloud storage and a load balancer?

Thanks

CodePudding user response:

  1. This limit is per project, so if you put different domains on different projects they are not affected by it.

  2. The documentation seems to describe the process pretty well: https://cloud.google.com/storage/docs/hosting-static-website#lb-ssl

  3. This limit applies to Firebase Hosting only. Other products may have their own limits of course, but those would be listed in the documentation for that product.

  • Related