Skip to content

A simple plugin to add B2 Cloud Storage support for Ghost Blog

License

Notifications You must be signed in to change notification settings

wsmlby/ghost-b2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost Backblaze(B2) Cloud Storage Plugin

A simple plugin to add Backblaze(B2) Cloud Storage support for a Ghost Blog

Installation

npm install --save ghost-b2-cloud-storage

Create storage module

Create index.js file with folder path 'content/storage/bcloud/index.js' (manually create folder if not exist)

'use strict';
module.exports = require('ghost-b2-cloud-storage');

Configuration

Create a bucket on your Backblaze(B2) Cloud storage project.

Add this key on your root ghost folder or any folder you want.

Add storage block to file config.js in each environment as below:

storage: {
  active: 'bcloud',
  'bcloud': {
      projectId: 'Your_project_id',
      bucketId: 'Your_bucket_id',
      bucketName: 'Your_bucket_name',
      key: 'Your_api_key'
  }
}

About

A simple plugin to add B2 Cloud Storage support for Ghost Blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%