feat: 添加代理支持

- 在 .env 中通过 PROXY_URL 配置代理
- 支持 http/https/socks4/socks5 代理
- 所有网络请求(curl_cffi 和 requests)都走代理
- 服务类构造函数新增 proxies 参数传递代理配置
This commit is contained in:
Debug Assistant
2026-02-20 00:05:03 +08:00
parent 91b187903c
commit 6798426c7b
6 changed files with 47 additions and 13 deletions

View File

@@ -5,3 +5,10 @@ FREEMAIL_TOKEN=your-jwt-token
# Turnstile 验证配置
# 如果不填则使用本地 Turnstile Solverhttp://127.0.0.1:5072
YESCAPTCHA_KEY=
# 代理配置(可选)
# 支持 http、https、socks4、socks5
# 示例:
# PROXY_URL=http://127.0.0.1:7890
# PROXY_URL=socks5://127.0.0.1:10808
PROXY_URL=