hexo-deployer-qiniucloud2

Qiniu Cloud deployer plugin of Hexo.

Usage no npm install needed!

<script type="module">
  import hexoDeployerQiniucloud2 from 'https://cdn.skypack.dev/hexo-deployer-qiniucloud2';
</script>

README

hexo-deployer-qiniucloud2

Hexo 上的七牛云部署器。

安装

npm install hexo-deployer-qiniucloud2 --save

使用

  1. 注册并登录七牛云

  2. 新建存储空间

  3. 获取密钥(Access/Secret Key)

  4. 编辑_config.yml文件

    deploy:
       type: qiniu
       accessKey: <accessKey>
       secretKey: <secretKey>
       # 华东: Zone_z0, 华北: Zone_z1, 华南: Zone_z2, 北美: Zone_na0, 东南亚: Zone_as0
       zone: <zone>
       # the name of bucket
       scope: <scope>
       # example http://www.a.com/,http://www.b.cn/
       dirsToRefresh: <dirsToRefresh> 
       # default is 3600
       expires: [expires]
       # default is true
       cover: [true|false]
       # default is false
       refreshCdn:  [true|false]
    
  5. 部署

    hexo deploy
    
  6. 绑定域名

许可证

MIT