feat: 新增图片上传专用代理,完善轮询与POW调用链路,重构POW与token传递

This commit is contained in:
TheSmallHanCat
2026-03-07 12:57:21 +08:00
parent ad554d900a
commit e7d91b31a7
12 changed files with 680 additions and 189 deletions

View File

@@ -40,6 +40,8 @@ auto_disable_on_401 = true
[proxy]
proxy_enabled = false
proxy_url = ""
image_upload_proxy_enabled = false
image_upload_proxy_url = ""
[watermark_free]
watermark_free_enabled = false
@@ -63,7 +65,7 @@ timezone_offset = 8
[pow_service]
# beta测试目前仍处于测试阶段
# POW 计算模式local本地计算或 external外部服务
mode = "external"
mode = "local"
# 是否使用对应 token 进行 POW 计算(默认关闭)
# local 模式开启后会使用当前轮询 token 获取 POW
# external 模式开启后会向外部服务传递 accesstoken 字段