-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
52 lines (44 loc) · 1.35 KB
/
Copy pathconfig.example.yaml
File metadata and controls
52 lines (44 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Clash 订阅地址
subscription_url: "YOUR_SUBSCRIPTION_URL_HERE"
# Clash API 配置
clash:
host: "127.0.0.1"
port: 9097 # Clash External Controller 端口(Clash Verge 默认 9097)
secret: "" # 如果设置了密码
# HTTP 代理配置
proxy:
host: "127.0.0.1"
port: 8901 # 内核直连端口(爬虫用,IP 跟随节点切换)
# 注意: 不要用 7897(Clash Verge 转发,IP 不跟随切换)
# 节点切换策略
strategy:
# 切换模式: manual | time_based | request_based | smart
mode: "smart"
# 时间切换间隔(秒)
time_interval: 300
# 请求数切换阈值
request_threshold: 100
# 智能切换参数
smart:
# 健康检查间隔(秒)
health_check_interval: 60
# 失败率阈值(超过则切换)
failure_rate_threshold: 0.3
# 最小延迟差异(ms,低于此值不切换)
min_latency_diff: 50
# 节点过滤
node_filter:
# 包含的国家代码(为空则全部)
include_countries: [] # 例如: ["US", "JP", "SG"]
# 排除的国家代码
exclude_countries: []
# 包含的关键词
include_keywords: [] # 例如: ["优质", "IEPL"]
# 排除的关键词
exclude_keywords: ["过期", "维护"]
# 日志配置
logging:
level: "INFO" # DEBUG | INFO | WARNING | ERROR
file: "logs/vpn_gateway.log"
max_bytes: 10485760 # 10MB
backup_count: 5