Skip to content

mootoday/ghost-v3-google-cloud-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost v3 Google Cloud Storage Adapter

This custom storage adapter for Ghost v3 allows you to send your publication's images to Google Cloud Storage (in short, GCS).

Read more about Ghost's storage adapters in the official documentation.

Installation

cd [your/ghost/root/directory]

# Create the GCS storage adapter directory
mkdir -p content/adapters/storage/gcs

# No need for --save as we will move the content to a different folder
npm install ghost-v3-google-cloud-storage

# Move the GCS storage adapter to the correct location so Ghost can find it
mv node_modules/ghost-v3-google-cloud-storage/* content/adapters/storage/gcs/

Note: We named the storage adapter gcs; it's simpler to work with.

Configuration

Create a Google Cloud Storage bucket

Please refer to the official documentation.

Ghost config file

Open your config.[env].json in the Ghost root directory and add a storage section.

"storage": {
  "active": "gcs",
  "gcs": {
    "bucket": "your-gcs-bucket-name",
    "keyFilename": "path-to-your-service-account.json",
    "cdn": "optional-cdn-domain"
  }
}

bucket: Required.

keyFilename: Optional if Ghost is hosted on GCP.

cdn: Optional. If you use a CDN, this is the CDN base URL.

About

A Google Cloud Storage adapter for Ghost v3 (www.ghost.org).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published