在这里插入图片描述
配置文件如下:

{
	"picBed": {
	  "current": "smms",
	  "uploader": "smms",
	  "smms": {
		"token": "你的token"
	  },
	  "github": {
      	"repo": "username/reponame",
  	    "branch": "master",
    	"token": "github token",
      	"path": "img/",
 	    "customUrl": "https://github.com/lizhuoyuan"
    },
    "upyun":{
			"bucket": "pictures-upyun",
			"operator": "lzy",
			"password": "",
			"options": "", 
			"path": "img/",
			"url": ""
		  },
	"qiniu": {
			"accessKey": "qNMwd4wdj6COPBXPgVM",
			"secretKey": "IlR5dYMEDt-u9YqbUuQ",
			"bucket": "lzy",
			"url": "http://zhuoyuan.ml",
			"area": "z2",
			"options": "",
			"path": "img/"
		},
	  "transformer": "path"
	},
	"picgoPlugins": {
	  "picgo-plugin-smms-user": true
	}
}

smms配置:

{
  "token": "" // 注册后获取的 api token
}

查看smss token

github配置:

{
  "repo": "", // 仓库名,格式是 username/reponame
  "token": "", // github token
  "path": "", // 自定义存储路径,比如 img/
  "customUrl": "", // 自定义域名,注意要加 http://或者 https://
  "branch": "" // 分支名,默认是 master
}

又拍云

{
  "bucket": "", // 存储空间名,及你的服务名
  "operator": "", // 操作员
  "password": "", // 密码
  "options": "", // 针对图片的一些后缀处理参数
  "path": "", // 自定义存储路径,比如 img/
  "url": "" // 加速域名,注意要加 http://或者 https://
}

七牛云

{
  "accessKey": "",
  "secretKey": "",
  "bucket": "", // 存储空间名
  "url": "", // 自定义域名
  "area": "z0" | "z1" | "z2" | "na0" | "as0", // 存储区域编号
  "options": "", // 网址后缀,比如?imgslim
  "path": "" // 自定义存储路径,比如 img/
}

设置完成后点击验证图片上传即可。

Logo

更多推荐