图床选择OSS(已完结)

github不稳定

SM.MS和其他不知道什么时候会跑路

阿里云 OSS最好用

可是有一个问题,打开图片链接直接下载而不是在线预览,需要设置Content-Type为image/jpg才能预览。

另一种解决方法就是自定义域名。绑定自定义域名必须备案,备案的时候需要有阿里云服务号或者IP,要IP需要购买阿里云的一项服务如ECS。我选择了在淘宝上1.99元买了一个备案服务号进行申请。

yumingbeianliucheng

折腾了将近20天,ICP备案终于搞定了,收到短信提示。登录上阿里云ICP备案后台查看,提示登录全国互联网安全管理服务平台继续提交资料。

有了ICP备案,OSS图床就可以绑定第三方域名了。为了安全起见,我还是注册了了公安部的那个党控网站,提交了一堆像审问罪犯似的材料。WTF!

图床工具我用的PicGo(win)和uPic(MacOS)。具体配置如下:

image-20220101163654194

其中KeyId和KeySecret在阿里云账户中:

image-20220101163514244

Typora支持PicGo:

image-20220101163915517

Enjoy it!

2022-01-13

今天Picgo出现无法启动的Bug:

picgo_errorJS

搜了一下解决办法是删除

C:\Users\NM\AppData\Roaming\picgo\data.json

这个文件(其中“NM”换成你自己的用户名)后重启Picgo。

重启后数据丢失,需要重新设置。

鉴于不是第一次出现这种问题,我决定改用Typora偏好设置里自带的PicGo-Core (command line)

image-20220113161537526

首先点击“上传服务”中PicGO-Core (command line)下面的“下载或者更新”(需魔法上网)

然后在

C:\Users\你的用户名\ .picgo

中运行cmd进行自动配置

1
picgo use uploader

或者手动配置.picgo中的config.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"picBed": {
"current": "aliyun",
"aliyun": {
"accessKeyId": "",
"accessKeySecret": "",
"bucket": "",
"area": "oss-cn-beijing",
"path": "uPic/",
"customUrl": "https://pic.xxx.com",
"options": ""
}
},
"picgoPlugins": {
"picgo-plugin-autocopy": true
}
}

最后点一下验证图片上传选项

image-20220113162504039

验证成功,可以愉快地无痛插入图片啦!

2022/01/19

Gitee 建图床(已废)

img

picgo-core command line 需要安装插件
picgo install gitee-uploader
picgo install super-prefix

PicGO-Core (command line) gitee图床的配置:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"picBed": {
"current": "gitee",
"gitee": {
"repo": "你的用户名/仓库名",
"branch": "master",
"token": "你的令牌",
"path": "",
"customPath": "",
"customUrl": "https://gitee.com/你的用户名/仓库名/raw/master/"
},
"uploader": "gitee",
"transformer": "path"
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true,
"picgo-plugin-super-prefix": true,
"picgo-plugin-autocopy": true
},
"picgo-plugin-gitee-uploader": {
"lastSync": "2022-01-21 10:00:29"
},
"picgo-plugin-super-prefix": {
"fileFormat": "YYYYMMDD-HHmmss"
} //super-prefix插件配置
}

2022-04-09更新:

3月25号Gitee对外链进行了封锁,也就是说Gitee做不了图床了。

图床已转Onedrive for Business网盘。

typoratest