@redserenity/ghost-storage-back-blaze
v1.1.0
Published
A storage adapter for Ghost that supports BackBlaze B2 cloud storage.
Downloads
24
Maintainers
Readme
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 [email protected]: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 | |----------------------------------------------|-------------------| | storage__ghost-storage-back-blaze__keyId | [your key id] | | storage__ghost-storage-back-blaze__secretKey | [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).