Rakesh M R
Rakesh M R

Reputation: 272

SSL for static websites in google cloud

I have purchased domain with godaddy. I am hosting the static website in Google cloud. I am not able to configure SSL for custom domain in google cloud. I am using storage in google cloud for this. Please help with steps. Thanks

Upvotes: 0

Views: 1432

Answers (1)

Ivan
Ivan

Reputation: 310

In order to use SSL certificates in GCP you need to have a Load Balancer created. This document explains it from the other point of view, how to add a Cloud Storage bucket when you already have a Load Balancer created, but the idea is the same.

Steps to take:

  1. Create a HTTPs Load Balancer in Google Cloud Platform
  2. Configure Backend to point to your Cloud Storage bucket
  3. Configure Frontend to use your SSL certificate

It is a best practice to separate a dynamic part of the website (by using a backend to point to an instance group - that will go to GCE instance) and a static part (choosing a backend to be Cloud Storage). This way you are insuring the speed and availability of the website.

You should also consider a CDN to cache a load balanced content close to your users.

enter image description here

Upvotes: 1

Related Questions