-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml.example
64 lines (64 loc) · 1.38 KB
/
config.yaml.example
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
53
54
55
56
57
58
59
60
61
62
63
64
# clash基本配置路径
base-file: data/base.yaml
# 生成文件路径,clash默认配置文件是/home/<user>/.config/clash/config.yaml
target: target.yaml
# 订阅链接列表
sub-links:
- url: https://example.com/api/subscribe?token=0000000
# 默认true,设置为false会将所有节点设置为udp: false
udp: false
# 可选,给节点名加前缀
name: group01
# 某些订阅源只允许特定的ua来拉去订阅
headers:
User-Agent: ClashForWindows<v2.50.0>
- url: https://example.com/
# 排除关键字,支持正则
exclude: ^(HK|SG)~
# 预加载节点,会加入到节点列表
proxies:
- name: node01
server: example.com
port: 12345
type: ss
udp: false
# 规则集
ruleset:
- name: ban
location: data/ban.list
- name: dir
location: data/direct.list
- name: pro
location: data/proxy.list
- name: dir
value: GEOIP,CN
- name: pro
value: MATCH
# 代理组配置
proxy-groups:
- name: auto
type: url-test
url: https://i.ytimg.com/generate_204
# test周期
interval: 300
# 延迟差阈值
tolerance: 50
proxies:
# *代表所有节点
- "*"
- name: pro
type: select
proxies:
- "auto"
- "DIRECT"
- "*"
- name: dir
type: select
proxies:
- "DIRECT"
- "auto"
- name: ban
type: select
proxies:
- "REJECT"
- "DIRECT"