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
Asked
Active
Viewed 1,024 times
0
LundinCast
- 7,759
- 4
- 26
- 40
Rakesh M R
- 192
- 1
- 7
-
3You may want to have a look at this: https://cloud.google.com/storage/docs/troubleshooting#https. You'll have to set up a load balancer, use a third-party Content Delivery Network with Cloud Storage, or serve your static website content from Firebase Hosting instead of Cloud Storage. – LundinCast Jan 09 '19 at 16:49
-
@LundinCast - You should post your comment (expanded a bit) as the answer. – John Hanley Jan 10 '19 at 06:34
1 Answers
1
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:
- Create a HTTPs Load Balancer in Google Cloud Platform
- Configure Backend to point to your Cloud Storage bucket
- 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.
Ivan
- 176
- 5