0%

PicGo + github 搭建图床

1. 在github上创建一个仓库。

2. 下载并安装 PicGo:

官网:https://molunerfinn.com/PicGo/

下载:https://github.com/Molunerfinn/picgo/releases

3. 配置PicGo:

  • GitHub中创建一个token:依次打开 Settings -> Developer settings -> Personal access tokens,最后点击 generate new token。勾选相关信息(expiration 改为 no expiration、select scope 勾选repo),然后点击生成token;
  • 打开 PicGo,图床设置 -> Github 图床
  • 填写相关设置:

4. 设置完成,可以上传图片测试了。

5. 设置cdn加速:设置自定义域名为 https://cdn.jsdelivr.net/gh/用户名/图床仓库名