fix: 新增代理
This commit is contained in:
19
.env.example
19
.env.example
@@ -12,13 +12,24 @@ SLIDER_VERIFY_KEY=408449830
|
||||
# 优先 WECHAT_WS_KEY,未设置则使用 KEY(登录参数填的 key)
|
||||
# WECHAT_WS_KEY=HBpEnbtj9BJZ
|
||||
|
||||
# 登录/唤醒时代理(可选):该值会传给 7006,由 7006 使用。必须为 7006 能访问的公网地址
|
||||
# 快速方式:先运行代理桥接 + cloudflared 暴露,自动写入本文件:
|
||||
# python3 scripts/local_proxy_bridge.py # 终端1
|
||||
# ./scripts/expose-proxy-with-cloudflared.sh # 终端2,会写 HTTP_PROXY/HTTPS_PROXY
|
||||
# 登录/唤醒时代理(可选):会传给 7006 使用。优先级:登录页填写 > HTTP_PROXY/HTTPS_PROXY > 固定隧道 > KDL API
|
||||
|
||||
# 固定隧道代理(推荐):socks5h + 用户名密码,与 requests 示例一致
|
||||
# 不填登录页代理时,后端自动使用此处配置
|
||||
TUNNEL_PROXY=218.78.109.253:16816
|
||||
TUNNEL_PROXY_USERNAME=fawbjjkk
|
||||
TUNNEL_PROXY_PASSWORD=5hz6avfb
|
||||
|
||||
# 或使用环境变量代理(如 cloudflared 暴露的地址):
|
||||
# ./scripts/expose-proxy-with-cloudflared.sh # 会写 HTTP_PROXY/HTTPS_PROXY
|
||||
# HTTP_PROXY=https://xxx.trycloudflare.com
|
||||
# HTTPS_PROXY=https://xxx.trycloudflare.com
|
||||
|
||||
# 快代理 KDL(可选):未配置隧道/env 时从 API 拉取代理
|
||||
# KDL_PROXY_API_URL=https://kps.kdlapi.com/api/getkps/?secret_id=xxx&signature=xxx&num=1&sep=1
|
||||
# KDL_PROXY_USERNAME=fawbjjkk
|
||||
# KDL_PROXY_PASSWORD=5hz6avfb
|
||||
|
||||
# 消息实时回调(主入口):设置后向 7006 注册 SetCallback,新消息由 7006 POST 到本服务,不再走 WS
|
||||
# 需为 7006 能访问到的公网地址,例如 https://your-domain.com
|
||||
# CALLBACK_BASE_URL=https://your-domain.com
|
||||
|
||||
Reference in New Issue
Block a user