Lazy loaded image
技术分享
🗒️技术分享丨用Picgo+Github打造私人图床
字数 286阅读时长 1 分钟
2023-4-26
2025-6-2
type
status
date
slug
summary
tags
category
icon
password

用Picgo+Github打造私人图床

配置github

创建repository
notion image
设置基本信息,点击create repository
notion image
点击头像,选择setting,然后在左侧找到Developer settings,点击它
notion image
点击生成new token
notion image
这个时候会要求验证(属于正常情况,验证即可。)
notion image
这里填写Note(给token备注),选择Expiration(有效时间),勾选repo(给予权限)
notion image
拉到最后,点击Generate token
notion image
会生成一条token(记得保存!!!只显示一次,后续无法再显示。)
notion image

配置Picgo

仓库名:这个直接就是github名字/仓库名字
设定分支名:目前github默认用main
设定Token:用上面步骤生成的
设定存储路径:如果要放文件夹里就写文件夹路径,留空就放根目录
设定自定义域名:这个可以使用Jsdelivr加速使用,也可以不填
notion image
以上填写完了之后,点击“确定”,再点击”设为默认图床“,就可以拿github作为图床使用了
 
 
 
上一篇
技术分享丨Hexo博客配置valine评论系统
下一篇
技术分享丨用Picgo+Gitee打造私人图床

评论
Loading...