1.0.1 • Published 4 years ago

ghost-storage-google-cloud v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ghost-storage-google-cloud

Google Cloud storage adapter for Ghost.

Installation

cd /path/to/your/ghost/installation
npm install ghost-storage-google-cloud
mkdir -p content/adapters/storage
cp -r node_modules/ghost-storage-google-cloud content/adapters/storage/ghost-storage-google-cloud

Usage

Add the following to your configuration file and modify it accordingly.

"storage": {
    "active": "ghost-storage-google-cloud",
    "ghost-storage-google-cloud": {
        "bucket": "<your bucket name here>",
        "baseUrl": "https://example.com",
        "maxAge": 3600,
        "projectId": "example"
    }
}

Here's a comprehensive list of configurations:

NameRequired?DescriptionEnvironment variable (prefixed with GHOST_GOOGLE_CLOUD_)
baseUrlnoBase URL of newly saved images. Uses Google Cloud Storage URL by defaultBASE_URL
bucketyesName of the storage bucketBUCKET
maxAgenoSeconds it takes for cache to expire. Defaults to one yearMAX_AGE
projectIdnoThe ID of the project that should be billedPROJECT_ID

License

MIT