Skip to content

muhm/ghost-tencent-cos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published