-3

I'm asking this question again as there still doesn't seem to be an elegant solution.

I've bought a domain from https://domains.google.com and I would like to point it to a bucket that I have my static site hosted on. My bucket name is www.test-domain.dev, and my domain is test-domain.dev.

Using Google Domains DNS I've created a CNAME record name of www which is pointing to c.storage.googleapis.com.

I've trawled lots of similar issues on here, but no concrete answer...

Any help would be really appreciated.

Thanks in advance!

DanV
  • 3,193
  • 4
  • 29
  • 43

1 Answers1

2

You will not be able to use your own domain/certificate this way. Google Cloud Storage static website fronted is only recommended for HTTP content. It is possible to use HTTPS but only with standard URI c.storage.googleapis.com. This is the reason why you're getting an untrusted certificate warning (looop.dev certificate with storage.googleapis.com domain).

The way to go is to use an HTTPS load balancer in GCP or a third party CDN in front of your GCS bucket. for more information refer to this link

To set up an HTTPS load balancer certificate resource see this link. AKA SSL Offloading.

Notauser
  • 406
  • 2
  • 10
  • Thanks for the answer but that's not what I am asking. That has helped though, as ultimately I do need SSL – DanV Apr 01 '19 at 16:00