Skip to content

martiendt/ghost-storage-adapter-b2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost Storage Adapter - Backblaze(B2) Cloud

This library works with current version of Ghost 1.x.x

Use version 2.x.x for ghost 1.x.x

Use version 1.x.x for ghost 0.x.x

Installation

Via NPM

npm install ghost-storage-adapter-b2
mkdir -p ./content/adapters/storage
cp -r ./node_modules/ghost-storage-adapter-b2 ./content/adapters/storage/b2

Via GIT

mkdir -p ./content/adapters/storage/b2
cd content/adapters/storage/b2
git clone git@github.com:martiendt/ghost-storage-adapter-b2.git .
npm install

Configuration

Add this in config."GHOST_ENVIRONMENT".js file

"storage": {
    "active": "b2",
    "b2": {
        "accountId": "YOUR_ACCOUNT_ID",
        "bucketId": "YOUR_BUCKET_ID",
        "bucketName": "YOUR_BUCKET_NAME",
        "key": "YOUR_APPLICATION_KEY"
    }
}   

If you don't have an account, you can create your account here and then create your bucket.