1.1.0 • Published 2 years ago
@redserenity/ghost-storage-back-blaze v1.1.0
Ghost Storage Adapter - BackBlaze B2
This storage adapter works with Ghost 5.x
Installation
Via Yarn (Recommended)
cd <ghost install dir>/current
yarn add ghost-storage-back-blaze@npm:@redserenity/ghost-storage-back-blaze
Via NPM
cd <ghost install dir>/current
npm install --save ghost-storage-back-blaze@npm:@redserenity/ghost-storage-back-blaze
Via GIT
mkdir -p <ghost install dir>/content/adapters/storage
cd <ghost install dir>/content/adapters/storage
git clone git@gitlab.com:RedSerenity/Ghost/Adapters/ghost-storage-back-blaze.git
Configuration
Configuration file
Edit your config.<environment>.js
file
{
..., // Existing configuration
"storage": {
"active": "ghost-storage-back-blaze",
"ghost-storage-back-blaze": {
"keyId": '<Your Key Id Here>',
"secretKey": '<Your Secret Key Here>'
}
}
}
Using environment variables
Name | Value |
---|---|
storageghost-storage-back-blazekeyId | your key id |
storageghost-storage-back-blazesecretKey | your secret key |
Notes
The bucket that gets used is the one tied to your keyId
. Make sure you create your application key for a specific bucket.
BackBlaze
Login to your BackBlaze account and go to App Keys. Create a new application key and be sure to select the bucket this key is for (do not create the key for ALL buckets).