Ashish Awasthi
Ashish Awasthi

Reputation: 1327

Setting CNAME for App-Engine Website (without a custom Domain) for Configuring a Google Cloud Storage Bucket as a Website

I have an app-engine application deployed at gaeid.appspot.com and a the same project has GCS bucket named store.gaeid.appspot.com that I want to configure as as a website.

GCS documentation says that I need to create a CNAME record to point store.gaeid.appspot.com to c.storage.googleapis.com which I couldn't find an option in GAE to do for the GAE app (without a custom Domain).

Is there a way point store.gaeid.appspot.com to the bucket?

Upvotes: 0

Views: 760

Answers (1)

Gianni Di Noia
Gianni Di Noia

Reputation: 1578

You may not manage the DNS domain appspot.com. So you can only use your own domain with a cname properly configured as described in the documentation.

edit:

For using a bucket as a website:

  • the name of the bucket need to be exactly the url of the website: www.example.com
  • the www of example.com need to be pointed to c.storage.googleapis.com through domain's dns panel.

you do not have a panel of dns for the domain appspot.com and Google don't provide this feature.

However, you can use the good old method of static folder in GAE with a tiny configuration in app.yaml:

handlers:

- url: /
  static_files: www/index.html
  upload: www/index.html

- url: /static
  static_dir: www/static

Upvotes: 1

Related Questions