2.0.2 • Published 5 years ago
ghost-tencent-cos v2.0.2
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