MENU

#笔记#Ghost博客添加七牛云储存作图床

March 21, 2018 • Read: 2419 • 网络笔记

Ghost博客在本博客也介绍了不少次,其中就有2篇关于ghost博客搭建教程

[post cid="1179" /]

[post cid="804" /]

今天就介绍一下作为博客程序以及经常搬家的博客站长来说,图床的使用。

环境

Ghost博客 版本大于1.0

qn-ghost插件 Github地址

使用

首先你当然要有Ghost博客啦。 进入你的博客安装目录

/content目录下新建一个文件夹adapters在其中新建一个文件夹storage

cd /你的博客目录/content/adapters/storage
git clone https://github.com/Minwe/qn-store.git
cd qn-store
npm install

这样插件就已经安装成功了,以为就这样结束了?
还差最后一部。

在你的Ghost博客目录下找到你的配置文件。

插入下述代码后 ghost restart重启你的博客

"storage": {
    "active": "qn-store",
    "qn-store": {
      "accessKey": "your access key", #在七牛云里面找,具体请百度
      "secretKey": "your secret key",
      "bucket": "your bucket name",  #你的对象储存名称
      "origin": "http://xx.xx.xx.glb.clouddn.com", #你对象储存的域名
      "fileKey": {
        "safeString": true,
        "prefix": "YYYYMM/"
      }
    }
  },
Archives QR Code Tip
QR Code for this page
Tipping QR Code