github做图床

少于 1 分钟读完

使用github做图床配合Mweb使用

完全参考这篇文章

MWeb自定义GitHub图床

Github图床使用

https://github.com/Molunerfinn/PicGo 也可以下载对应客户端

腾讯云有专门的cosbrowser 客户端 对这个不适用

做法简述

https://github.com/settings/tokens 中点击generate new token

git clone https://github.com/gaopeng-hz/PicBed4MWeb.git npm install 修改config.json

{
    "repo": "gaopeng-hz/images",  // 仓库名称
    "token": "xxxx",  // token,不能公开,获取方式参考上面那篇文章
    "port": 8081,  // node服务器监听端口,默认8080
    "url": "/upload"  // 服务上传url,默认/upload
}

评论