项目作者: martiendt

项目描述 :
Ghost Storage Adapter - Backblaze(B2) Cloud Storage
高级语言: JavaScript
项目地址: git://github.com/martiendt/ghost-storage-adapter-b2.git
创建时间: 2017-03-25T03:18:56Z
项目社区:https://github.com/martiendt/ghost-storage-adapter-b2

开源协议:MIT License

下载


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

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

Via GIT

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

Configuration

Add this in config."GHOST_ENVIRONMENT".js file

  1. "storage": {
  2. "active": "b2",
  3. "b2": {
  4. "accountId": "YOUR_ACCOUNT_ID",
  5. "bucketId": "YOUR_BUCKET_ID",
  6. "bucketName": "YOUR_BUCKET_NAME",
  7. "key": "YOUR_APPLICATION_KEY"
  8. }
  9. }

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