mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-02 20:26:36 +08:00
feat: 添加 FlareSolverr 配置支持以绕过 Cloudflare/WAF
- 在 config.example.yaml 中添加 flaresolverr 配置段 - 在 internal/config/config.go 中添加 FlareSolverrConfig 结构体 - 修改 SiteService 接收 flaresolverr URL - 更新 TestConnection 使用配置的 FlareSolverr URL - 构建验证通过
This commit is contained in:
@@ -86,3 +86,10 @@ ai:
|
||||
model: gpt-4o-mini
|
||||
timeout: 30
|
||||
max_concurrent: 3
|
||||
|
||||
# FlareSolverr 配置(用于绕过 Cloudflare/WAF 保护)
|
||||
flaresolverr:
|
||||
enabled: false
|
||||
url: "http://localhost:8191" # FlareSolverr 服务地址
|
||||
session: "mediastation" # 会话名称(可选,保持 cookie 持久化)
|
||||
timeout: 60 # 请求超时(秒)
|
||||
|
||||
Reference in New Issue
Block a user