How to host an entire site on Google Cloud Storage?

后端 未结 8 1128

Is there any way to host an entire site on Google Cloud Storage? That is, map a bucket directly to a top level domain.

E.g. create a bucket called <

8条回答
  •  抹茶落季
    2020-12-14 02:05

    You can't host your root domain from google cloud storage as of now, due to the cname restriction in DNS. You will have to have alias record in DNS pointing to an ipaddress to serve the root domain.

    Firebase seems to be an alternate ideal option for this and is also almost free for standard traffic. Also has very few steps to host a static site - installing firebase cli with npm and a couple of commands to deploy. You can then get a list of ips from the firebase console that you can connect to your domain, by adding them in a alias record in your DNS.

    https://firebase.google.com/docs/hosting

提交回复
热议问题