This article describes how to build a static site with Google Cloud Storage with Load Balancer and CDN, SSL, DNS etc.
It is assumed that the following requirements will be met:
- Host your images and HTML, etc in Google Cloud Storage
- Deliver images, etc. using HTTPS URL
- Subscribe to your specific domain
- A. Setting up Google Cloud Storage
- B. Configuring Google Cloud Load Balancer
Please refer to the following page to check the ownership of the domain “www.example.com" on Google Search Console.
This can be confirmed by setting the TXT specified in the DNS.
Create a bucket named “www.example.com".
Do not put
_ in the domain name because it will cause an error later.
Add a public status to the bucket “www.example.com" that I made earlier by referring to the following page.
c.storage.googleapis.com in the CNAME of “www.example.com" on DNS.
Create Load Balancing with a bucket as the backend.
Points to note are as follows.
- Do not use ephemerals for IP addresses. Set a fixed IP.
- Allow CDNs on demand
- The network will be at a premium.
- There is an option that Google automatically creates an SSL certificate in the HTTPS setting, so I use it.
Set the IP of the Load Balancer in the A Type of “www.example.com" on the DNS.
After 5-10 minutes of waiting for DNS penetration, you will get a green mark on your SSL.
Then, try to make a communication check.
🖥 Recommended VPS Service
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!