-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathparser.yaml
109 lines (108 loc) · 3.78 KB
/
parser.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#append-rules 数组 数组合并至原配置 rules 数组后
#prepend-rules 数组 数组合并至原配置 rules 数组前
#append-proxies 数组 数组合并至原配置 proxies 数组后
#prepend-proxies 数组 数组合并至原配置 proxies 数组前
#append-proxy-groups 数组 数组合并至原配置 proxiy-groups 数组后
#prepend-proxy-groups 数组 数组合并至原配置 proxiy-groups 数组前
#mix-proxy-providers 对象 对象合并至原配置 proxy-providers 中
#mix-rule-providers 对象 对象合并至原配置 rule-providers 中
#mix-object 对象 对象合并至原配置最外层中
#commands 数组 在上面操作完成后执行简单命令操作配置文件
#每个命令可以被分为三个部分,分别是:定位+操作+设定值
#定位:定位中每个层级以.分割,可以以name作为分割依据
#操作:=:覆盖,+:插入,-:删除
#支持[]proxyNames,[]groupNames和[]shuffledProxyNames,并支持使用正则过滤'|'其中节点
mix-object:
# 自定义覆盖规则
rules:
- RULE-SET,AI,💡OpenAI
- RULE-SET,Video,🎬Video
- RULE-SET,GoogleSearch,🔍Search
# local hosts
- RULE-SET,lancidr,✔️Direct
- RULE-SET,private,✔️Direct
# direct
- RULE-SET,direct,✔️Direct
- RULE-SET,apple,✔️Direct
- RULE-SET,icloud,✔️Direct
# proxy
- RULE-SET,telegram,🚀Proxy
- RULE-SET,proxy,🚀Proxy
- RULE-SET,gfw,🚀Proxy
# cn ip
- RULE-SET,cncidr,✔️Direct
- GEOIP,CN,✔️Direct
- MATCH,🐟漏网之鱼
mix-rule-providers:
cncidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
path: ./RuleSet/cncidr.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
path: ./RuleSet/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
path: ./RuleSet/direct.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
path: ./RuleSet/icloud.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
path: ./RuleSet/apple.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
path: ./RuleSet/lancidr.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt"
path: ./RuleSet/gfw.yaml
interval: 86400
telegram:
type: http
behavior: ipcidr
path: ./RuleSet/telegram.yaml
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt
interval: 86400
private:
type: http
behavior: domain
path: ./RuleSet/private.yaml
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt
interval: 86400
Video:
type: http
behavior: classical
path: ./MyRules/Video.yaml
url: https://cdn.jsdelivr.net/gh/SplitGemini/Clash_configuration@master/MyRules/Video.yaml
interval: 86400
AI:
type: http
behavior: classical
path: ./MyRules/AI.yaml
url: https://cdn.jsdelivr.net/gh/SplitGemini/Clash_configuration@master/MyRules/AI.yaml
interval: 86400
GoogleSearch:
type: http
behavior: classical
path: ./MyRules/GoogleSearch.yaml
url: https://cdn.jsdelivr.net/gh/SplitGemini/Clash_configuration@master/MyRules/GoogleSearch.yaml
interval: 86400