ghost-tencent-cos

2.0.2 • Public • Published

ghost-tencent-cos

A simple plugin to add Tencent Cloud Object Storage support for a Ghost Blog 2.x.

Installation

cd [path/to/ghost]
npm install --save ghost-tencent-cos

Create storage module

Create a script named "tencent-cos", content as below:

// [path/to/ghost]/content/adapters/storage/tencent-cos.js

module.exports = require('ghost-tencent-cos');

Configuration

Add a storage block to your config.${GHOST_ENVIRONMENT}.json as below:

{
  ...
  "storage": {
    "active": "tencent-cos",
    "tencent-cos": {
      "bucket": "{BucketName}-{AppId}",
      "region": "{BucketRegion}",
      "secretId": "{SecretId}",
      "secretKey": "{SecretKey}",
      "baseUrl": "{url}"
      "pathPrefix":"{pathPrefix}"
    }
  }
}

License

Read LICENSE

Readme

Keywords

Package Sidebar

Install

npm i ghost-tencent-cos

Weekly Downloads

1

Version

2.0.2

License

Anti 996

Unpacked Size

6.82 kB

Total Files

4

Last publish

Collaborators

  • glhf