Google Cloud Platform Static website

  • Display instructions https://cloud.google.com/storage/docs/hosting-static-website for instructions
    • Create a google cloud account https://cloud.google.com  (requires credit card details) 
    • Register domain c go daddy ($3 ! for one year)
    • Verify the domain using Google automatic tool  https://www.google.com/webmasters/verification/home?hl=en
    • Log into Go Daddy and open domain - DNS Zone File - Edit existing www record:
      • Type: CNAME
      • Host: www.wisywgit.space  (or whatever you have registered))
      • Points to: c.storage.googleapis.com
      • TTL: 1 hour (default value)
    • Log into https://console.cloud.google.com/storage/browser
    • Create a bucket with the name of the website e.g. www.wisywgit.space (This failed for me for a bout an hour before working.  Perhaps server settings from the verification had not reached the console server ?)
      • Edit Object Default permissions
      • Add Permission: User - allUsers - Reader (see https://cloud.google.com/storage/docs/cloud-console#_sharingdata)
    •  Edit website configuration:
      • type the filename for the main page and Save  (the default index.html is already there in grey, but must be typed and saved to execute it)

    No comments:

    This post contains some responses to questions that I have been asked by various people over the last few years. In most cases, I have also posted the information on relevant online community forums such as moodle.org. I hope that you find this useful. Stephen Digby