npm install ghost-oss-store
mkdir content/storage
cp -vR node_modules/ghost-oss-store content/storage/oss-store
cd [path/to/ghost]/content/storage
mkdir oss-store && cd oss-store
git clone https://github.com/MT-Libraries/ghost-oss-store ./
npm install
storage: {
active: 'oss-store',
'oss_store': {
accessKeyId: 'accessKeyId',
accessKeySecret: 'accessKeySecret',
bucket: 'bucket',
region: 'oss-cn-hangzhou',
origin: 'https://www.thonatos.com/', // if you have bind custom domain to oss bucket. or false
fileKey: {
safeString: true, // use Ghost safaString util to rename filename, e.g. Chinese to Pinyin
prefix: 'ghost/', // { String } will be formated by moment.js, using `[]` to escape,
suffix: '' // { String } string added before file extname.
}
}
}
集结各类场景实战经验,助你开发运维畅行无忧