Note-52800-406

Token ID: 1

ERC-721 1 Transfers

Metadata

{
  "title": "PicGo + uPic + Github 搭建免费图床",
  "tags": [
    "post",
    "Github",
    "图床"
  ],
  "summary": "介绍 自从来到 xLog 就开始养成写博客的习惯,虽然 xLog 目前上传图片无限制也免费,但一直以来我使用的服务都养成了备份的习惯,也不怕跑路。对比了 Amazon S3 & Cloudflare R2 ,感兴趣的可以看看 R2 vs S3,感觉 Cloudflare R2…",
  "sources": [
    "xlog"
  ],
  "external_urls": [
    "https://x.geekbb.ml/github_picgo_upic"
  ],
  "date_published": "2023-05-20T06:08:26.931Z",
  "content": "\n![787shots_so](https://cdn.jsdelivr.net/gh/geekbb/oss_img@master/uPic/787shots_so.png)\n### 介绍\n\n自从来到 xLog 就开始养成写博客的习惯,虽然 xLog 目前上传图片无限制也免费,但一直以来我使用的服务都养成了备份的习惯,也不怕跑路。对比了 Amazon S3 & Cloudflare R2 ,感兴趣的可以看看 [R2 vs S3](https://www.vantage.sh/blog/cloudflare-r2-aws-s3-comparison),感觉 Cloudflare R2 性价比更高,还可以免费嫖 10 GB ,但总怕背刺,我不考虑大陆 IP 访问问题,所以索性换成免费的 Github,要比稳定,谁能比过 Github?使用总之一句话: \"有备无患\"。\n\n### Github 图库\n\n#### 新建仓库\n\n注册好Github帐号,新建仓库,仓库名记住。\n\n![CleanShot 2023-05-20 at 10.33.44@2x](file:///Users/geek/Pictures/CleanShot%202023-05-20%20at%[email protected]?lastModify=1684559357)\n\n#### 新建 token\n\n1/点击个人——“设置”\n\n![CleanShot2023-05-20at10.35.21@2x](https://cdn.jsdelivr.net/gh/geekbb/oss_img@master/uPic/CleanShot%202023-05-20%20at%[email protected])\n\n2/左边最下面选择\" <>Developer settings \"\n\n![](https://raw.githubusercontent.com/geekbb/oss_img/master/CleanShot%202023-05-20%20at%[email protected])\n\n3/选择令牌 Tokens (classic)——Generate new token (classic)\n\n![CleanShot 2023-05-21 at 10.42.58@2x](https://raw.githubusercontent.com/geekbb/oss_img/master/CleanShot%202023-05-21%20at%[email protected])\n\n4/备注选填,一定勾选 repo\n\n![CleanShot 2023-05-20 at 10.44.07@2x](https://raw.githubusercontent.com/geekbb/oss_img/master/CleanShot%202023-05-20%20at%[email protected])\n\n5/复制好 token\n\n![CleanShot 2023-05-20 at 10.45.25@2x](https://raw.githubusercontent.com/geekbb/oss_img/master/CleanShot%202023-05-20%20at%[email protected])\n\n以上,Github图库仓库设置完成\n***\n### PicGo\n\n#### 下载 PicGo\n\n| 项目               | 地址                                        |\n|:-----------------|:------------------------------------------|\n| PicGo Github | https://github.com/Molunerfinn/PicGo             |\n| PicGo 下载         | https://github.com/Molunerfinn/PicGo/releases |\n\n\n#### 设置 PicGo\n打开 PicGo 设置,选择 Github 后编辑右边的配置文件\n\n![CleanShot2023-05-20at13.27.03@2x](https://cdn.jsdelivr.net/gh/geekbb/oss_img@master/uPic/CleanShot%202023-05-20%20at%[email protected])\n\n填入第一步记下的仓库名(格式是 userame/repo) 和拷贝下来的 token ,确定即可\n\n![CleanShot2023-05-20at13.27.35@2x](https://cdn.jsdelivr.net/gh/geekbb/oss_img@master/uPic/CleanShot%202023-05-20%20at%[email protected])\n***\n### uPic\n\n#### 下载 uPic\n| 项目               | 地址                                        |\n|:-----------------|:------------------------------------------|\n| uPic&nbsp; Github | https://github.com/gee1k/uPic             |\n| Homebrew         | brew install bigwig-club/brew/upic --cask |\n| Github Download  | https://github.com/gee1k/uPic/releases    |  \n\n#### 配置 uPic\n\n在设置中选择图床,左下脚 + \"Github\"\n\n![CleanShot2023-05-20at13.43.20@2x](https://cdn.jsdelivr.net/gh/geekbb/oss_img@master/uPic/CleanShot%202023-05-20%20at%[email protected])\n\n\n> -   `用户名`: Github 用户名。例如:我的 Github 主页 [https://github.com/gee1k](https://github.com/gee1k),我的用户名就是 `gee1k`\n> -   `仓库名`: 需要储存上传文件的仓库名称。例如:我的仓库地址为 [https://github.com/gee1k/oss](https://github.com/gee1k/oss),仓库名称就是`oss`\n> -   `分支`: 分支名称,默认是`master`,如果是其他分支,就必须先创建好分支,才能上传\n> -   `Token`: Github 的个人访问令牌(Personal access tokens)\n> -   `域名`: 默认可不设置域名,会使用 Github 默认的访问地址。当你的仓库开启了 `pages` 功能,并配置好了自定义域名时,这里就可以使用你的自定义域名\n> -    ---引用 https://blog.svend.cc/upic/tutorials/github/\n\n\n\n保存即可\n\n![CleanShot2023-05-20at13.44.50@2x](https://cdn.jsdelivr.net/gh/geekbb/oss_img@master/uPic/CleanShot%202023-05-20%20at%[email protected])\n#### jsDelivr 加速\n需要 `jsdelivr` CDN 加速访问请勾选👇\n\n链接将会变成\n\n```\nhttps://cdn.jsdelivr.net/gh/geekbb/oss_img@×***\n```\n\n\n\n![CleanShot2023-05-20at13.44.30@2x](https://cdn.jsdelivr.net/gh/geekbb/oss_img@master/uPic/CleanShot%202023-05-20%20at%[email protected])\n***\n### Typora \n\nTypora 的配置更为简单,只要你配置好 PicGo ,在 Typora 设置里选择 PicGo. app 即可\n\n![CleanShot2023-05-20at13.55.06@2x](https://cdn.jsdelivr.net/gh/geekbb/oss_img@master/uPic/CleanShot%202023-05-20%20at%[email protected])",
  "attributes": [
    {
      "value": "github_picgo_upic",
      "trait_type": "xlog_slug"
    }
  ]
}