(Optional) Enable HTTPS
It is mandatory to have a domain name to enable HTTPS. For the sake of this article, I am going to point cat.ba3a.tech to the website and enable HTTPS on it. You can follow along with your own domain name, like example.com.
- Create an A record to the IP address
- Go to the Load Balancer details page
- Click on Edit
- From Frontend configuration, click on Add Frontend IP and Port
- Name it anything, like gfg-demo-frontend
- Click on Protocol and select HTTPS
- Click on IP address and select the existing one
- Click on Certificate > Create new certificate
- Name it anything, like gfg-demo-cert
- Click on Google managed certificate
- Add your domain name, like example.com
- Finally, click on Create
- Uncheck Enable HTTP to HTTPS redirect, if it is checked
- Click on Update from the bottom of the page
We have now enabled HTTPS on our awesome cat website! It will likely take some time to provision the SSL certificate for our website, be patient with it. You can visit the cat website that I have created at cat.ba3a.tech. Visit the website and you will see her writing code in all her glory! BTW, what is she listening to?
Hosting a Static Website on Google Cloud Storage: Step-by-Step Tutorial
You have finally built the awesome portfolio website that all recruiters want. But now the question is, where to host it? Well, there are quite a few options for it, and object storage solutions like Google Cloud Storage and AWS S3 are some of the popular ones. You can host your static website in just a few steps using them.
Now what is object storage? It is simply one of the methods to store files which are called objects. It was created with cost-effectiveness in mind. Object Storage solutions are also generally called S3 compatible. So, Google Cloud Storage, AWS S3, Cloudflare R2, and Backblaze B2 are some of the S3-compatible storage solutions.
In this article, we will see how to deploy an awesome cat website on Google Cloud Storage. AsiaPlease note that you can only host static websites and not dynamic ones. But why? Simply because dynamic websites require a server.
Contact Us