因为之前博客的备份文件出了问题,最近再用Typora重新写。利用Picgo-Core可以实现插入图片自动上传至云存储服务器,省去了我自己上传图片的烦恼,写好直接导入即可

typora

由于七牛云没有免费的https协议的CDN流量,我现在用的又拍云,配置文件如下


#七牛云
{
  "picBed": {
    "uploader": "qiniu",
    "qiniu": {
      "accessKey": "",
      "secretKey": "",
      "bucket": "",     //存储空间名
      "url": "",        //自定义域名
      "area": "",       //存储区域编号
      "options": "",    //网址后缀,比如?imgslim
      "path": "img/"    //自定义存储路径,比如 img/
    }
  },
  "picgoPlugins": {}
}

#又拍云
{
 "picBed": {
"uploader": "upyun",
"upyun":{
	"bucket": "storage123",      //存储空间名
	"operator": "hxft",          //操作员
	"password": "",              //密码
	"options": "",               //网址后缀,比如?imgslim 可不填
	"path": "img/",              //自定义存储路径,比如 img/
	"url": ""                    //自定义域名
  }
},
  "picgoPlugins": {}
}

Q.E.D.