b2-ghost-storage

0.2.0 • Public • Published

Backblaze(B2) - Ghost Storage

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

B2 Ghost Storage allows ghost to save images to Backblaze B2, with options of creating subfolders in their B2 buckets and if the files are saved using /Year/Month/Filename.png or just filename.png

Installation

Via NPM

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

Via GIT

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

Configuration

Add this in config."GHOST_ENVIRONMENT".js file

"storage": {
    "active": "b2-ghost-storage",
    "b2-ghost-storage": {
        "accountId": "MASTERKEY_ID",
        "applicationKey": "MASTER_APPLICATION_KEY",
        "bucketId": "YOUR_BUCKET_ID",
        "bucketName": "YOUR_BUCKET_NAME",
        "subFolder": "OPTIONAL_SUBFOLDER",
        "useDatedFolder":TRUE_OR_FALSE
    }
}

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

Package Sidebar

Install

npm i b2-ghost-storage

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

5.91 kB

Total Files

5

Last publish

Collaborators

  • marky_gee