update readme

This commit is contained in:
MarSeventh
2024-12-10 12:07:48 +08:00
parent 60521bc942
commit e1f99743dc
24 changed files with 23 additions and 23 deletions

View File

@@ -48,7 +48,7 @@
此外,上传**并没有严格限制文件类型**,理论上你可以上传**任何**文件,但是暂时不会针对图片和视频外的文件进行特殊优化和适配。 此外,上传**并没有严格限制文件类型**,理论上你可以上传**任何**文件,但是暂时不会针对图片和视频外的文件进行特殊优化和适配。
![CloudFlare](https://alist.sanyue.site/d/imgbed/202410011443570.png) ![CloudFlare](static/202410011443570.png)
## 2.Features ## 2.Features
@@ -74,7 +74,7 @@
> >
> Cloudflare R2渠道上传大小不限但超过免费额度会扣费详见[Pricing | Cloudflare R2 docs](https://developers.cloudflare.com/r2/pricing/) > Cloudflare R2渠道上传大小不限但超过免费额度会扣费详见[Pricing | Cloudflare R2 docs](https://developers.cloudflare.com/r2/pricing/)
> >
> ![](https://alist.sanyue.site/d/imgbed/202411052346701.png) > ![](static/202411052346701.png)
- **上传方式多样**:支持多种上传方式(**拖拽点击、粘贴**Web/API) - **上传方式多样**:支持多种上传方式(**拖拽点击、粘贴**Web/API)
@@ -153,19 +153,19 @@
1. 向[@BotFather](https://t.me/BotFather)发送`/newbot`按照提示输入bot的备注、用户名等信息。成功创建后获得`TG_BOT_TOKEN` 1. 向[@BotFather](https://t.me/BotFather)发送`/newbot`按照提示输入bot的备注、用户名等信息。成功创建后获得`TG_BOT_TOKEN`
![](https://alist.sanyue.site/d/imgbed/202409071744569.png) ![](static/202409071744569.png)
2. 创建一个新的频道Channel进入新建的频道选择频道管理将刚才创建的机器人设为频道管理员。 2. 创建一个新的频道Channel进入新建的频道选择频道管理将刚才创建的机器人设为频道管理员。
![](https://alist.sanyue.site/d/imgbed/202409071758534.png) ![](static/202409071758534.png)
![](https://alist.sanyue.site/d/imgbed/202409071758796.png) ![](static/202409071758796.png)
![](https://alist.sanyue.site/d/imgbed/202410291531473.png) ![](static/202410291531473.png)
3. 向[@VersaToolsBot](https://t.me/VersaToolsBot)**转发**一条第2步新建频道中的消息获取`TG_CHAT_ID`频道ID 3. 向[@VersaToolsBot](https://t.me/VersaToolsBot)**转发**一条第2步新建频道中的消息获取`TG_CHAT_ID`频道ID
![](https://alist.sanyue.site/d/imgbed/202409071751619.png) ![](static/202409071751619.png)
</details> </details>
@@ -176,15 +176,15 @@
1. 前往Cloudflare Dashboard选择`R2 存储对象` 1. 前往Cloudflare Dashboard选择`R2 存储对象`
![](https://alist.sanyue.site/d/imgbed/202411052318204.png) ![](static/202411052318204.png)
2. 选择`创建存储桶`,名称随意,填完后点击`创建存储桶`即可完成创建 2. 选择`创建存储桶`,名称随意,填完后点击`创建存储桶`即可完成创建
![](https://alist.sanyue.site/d/imgbed/202411052319402.png) ![](static/202411052319402.png)
3. 根据需求可选操作:如果**需要启用图像审查,需要开启存储桶的公网访问权限**,有两种开启方式,详见下图。无论你选择哪种方式,都需要记下完整的公网访问链接,格式为`https://xxxx.xxx` 3. 根据需求可选操作:如果**需要启用图像审查,需要开启存储桶的公网访问权限**,有两种开启方式,详见下图。无论你选择哪种方式,都需要记下完整的公网访问链接,格式为`https://xxxx.xxx`
![image-20241105232759131](https://alist.sanyue.site/d/imgbed/202411052327191.png) ![image-20241105232759131](static/202411052327191.png)
</details> </details>
@@ -221,7 +221,7 @@
2. 打开 Cloudflare Dashboard进入 Pages 管理页面,选择创建项目,选择`连接到 Git 提供程序` 2. 打开 Cloudflare Dashboard进入 Pages 管理页面,选择创建项目,选择`连接到 Git 提供程序`
![1](https://alist.sanyue.site/d/imgbed/202407201047300.png) ![1](static/202407201047300.png)
3. 按照页面提示输入项目名称,选择需要连接的 git 仓库,点击`部署站点` 3. 按照页面提示输入项目名称,选择需要连接的 git 仓库,点击`部署站点`
@@ -236,11 +236,11 @@
将前面新建的存储桶绑定到项目,名称为`img_r2` 将前面新建的存储桶绑定到项目,名称为`img_r2`
![](https://alist.sanyue.site/d/imgbed/202411052323183.png) ![](static/202411052323183.png)
如果后续要开启**图像审查**,需要设置`R2PublicUrl`环境变量,值为前面记下的**R2存储桶公网访问链接** 如果后续要开启**图像审查**,需要设置`R2PublicUrl`环境变量,值为前面记下的**R2存储桶公网访问链接**
![](https://alist.sanyue.site/d/imgbed/202411052330663.png) ![](static/202411052330663.png)
</details> </details>
@@ -248,9 +248,9 @@
- 创建一个新的KV数据库 - 创建一个新的KV数据库
> ![](https://alist.sanyue.site/d/imgbed/202408261035367.png) > ![](static/202408261035367.png)
> >
> ![](https://alist.sanyue.site/d/imgbed/202408261037971.png) > ![](static/202408261037971.png)
- 进入项目对应`设置`->`函数`->`KV 命名空间绑定`->`编辑绑定`->`变量名称`,填写`img_url`KV命名空间选择刚才创建好的KV数据库 - 进入项目对应`设置`->`函数`->`KV 命名空间绑定`->`编辑绑定`->`变量名称`,填写`img_url`KV命名空间选择刚才创建好的KV数据库
@@ -298,7 +298,7 @@
正常启动,控制台输出如下: 正常启动,控制台输出如下:
![202408191829163](https://alist.sanyue.site/d/imgbed/202408191855625.png) ![202408191829163](static/202408191855625.png)
</details> </details>
@@ -403,11 +403,11 @@ Web端在登录页面输入你的**认证码**即可登录使用API端需要
1. **修改环境变量方式** 1. **修改环境变量方式**
![](https://alist.sanyue.site/d/imgbed/202408261040233.png) ![](static/202408261040233.png)
**修改环境变量后需要重新部署才能生效!** **修改环境变量后需要重新部署才能生效!**
![](https://alist.sanyue.site/d/imgbed/202408261041507.png) ![](static/202408261041507.png)
2. **程序更新方式** 2. **程序更新方式**
@@ -416,7 +416,7 @@ Web端在登录页面输入你的**认证码**即可登录使用API端需要
如果有新的环境变量需要添加,请根据文档要求进行添加,然后重试部署。 如果有新的环境变量需要添加,请根据文档要求进行添加,然后重试部署。
![](https://alist.sanyue.site/d/imgbed/202409161736365.png) ![](static/202409161736365.png)
</details> </details>
@@ -430,9 +430,9 @@ Web端在登录页面输入你的**认证码**即可登录使用API端需要
### 4.1Web端使用方式 ### 4.1Web端使用方式
![](https://alist.sanyue.site/d/imgbed/202412092301397.png) ![](static/202412092301397.png)
![](https://alist.sanyue.site/d/imgbed/202412092305405.png) ![](static/202412092305405.png)
### 4.2API文档 ### 4.2API文档
@@ -567,11 +567,11 @@ Web端在登录页面输入你的**认证码**即可登录使用API端需要
- PicGo插件设置中搜索`web-uploader`,安装可自定义前缀的版本,如图: - PicGo插件设置中搜索`web-uploader`,安装可自定义前缀的版本,如图:
![](https://alist.sanyue.site/d/imgbed/202408231141491.png) ![](static/202408231141491.png)
- 打开`图床设置`->`自定义Web图床`->`Default`然后按照下图方式配置注意API地址和自定义图片URL前缀按照自己的域名进行修改。**如果设置了`AUTH_CODE`,一定以`?authCode=your_authCode`的方式添加到API地址后面** - 打开`图床设置`->`自定义Web图床`->`Default`然后按照下图方式配置注意API地址和自定义图片URL前缀按照自己的域名进行修改。**如果设置了`AUTH_CODE`,一定以`?authCode=your_authCode`的方式添加到API地址后面**
![](https://alist.sanyue.site/d/imgbed/202408261959174.png) ![](static/202408261959174.png)
- 设置完成确定即可使用PicGo上传到自建的图床。 - 设置完成确定即可使用PicGo上传到自建的图床。

BIN
static/202407201047300.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
static/202408191855625.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
static/202408231141491.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
static/202408261035367.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

BIN
static/202408261037971.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
static/202408261040233.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

BIN
static/202408261041507.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

BIN
static/202408261959174.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

BIN
static/202409071744569.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
static/202409071751619.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
static/202409071758534.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
static/202409071758796.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
static/202409161736365.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
static/202410011443570.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 KiB

BIN
static/202410291531473.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
static/202411052318204.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
static/202411052319402.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
static/202411052323183.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
static/202411052327191.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
static/202411052330663.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
static/202411052346701.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
static/202412092301397.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
static/202412092305405.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB