-
Notifications
You must be signed in to change notification settings - Fork 3
/
ClashXKindly-Mini.yaml
80 lines (74 loc) · 2.98 KB
/
ClashXKindly-Mini.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
# --------------------------------ClashX Kindly Config Mini-----------------------------------------------
# @GitHub https://github.com/LittlePonyX/ClashXKindly-config
# @Version 1.0.1
# --------------------------------ClashX Kindly Config Mini-----------------------------------------------
mixed-port: 7890
mode: rule
external-controller: 127.0.0.1:9090
secret: "ytYJ42g92tjU@!%z"
pvd-info: &pvd-info
type: http
interval: 259200 # 3天
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 600
# clash 链接无须转换 可自建或选择其他订阅转换工具 推荐选择输出为 NodeList 处理节点过滤
proxy-providers:
Subscribe:
<<: *pvd-info
# 排除关键字使用exclude参数(UrlCode编码)例如要排除"海外|到期"在链接后追加 &exclude=%E6%B5%B7%E5%A4%96%7C%E5%88%B0%E6%9C%9F
url: https://sub.xeton.dev/sub?target=clash&url=订阅链接多个用|分割&list=true&udp=false&exclude=%E6%B5%B7%E5%A4%96%7C%E5%88%B0%E6%9C%9F
path: ./Providers/Proxies/Subscribe.yaml
# filter: 'a|b' # 过滤节点 Golang regex 不支持复杂表达式建议用订阅转换工具过滤
all-proxy: &all-proxy
type: select
use:
- Subscribe
# 其他代理示例 自建等写在这里
proxies:
- { name: "ss1", type: ss, server: server, port: 443, cipher: chacha20-ietf-poly1305, password: "password", udp: true }
# - { name: "ss2", type: ss, server: server, port: 443, cipher: chacha20-ietf-poly1305, password: "password", udp: true }
# 自建数量多可以定义锚点后进行合并
# local-proxy: &local-proxy
- ss1
# - ss2
proxy-groups:
- name: 🚀 手动切换
<<: *all-proxy
proxies: [♻️ 自动选择]
# proxies: [♻️ 自动选择, ss1, ss2] # 多个节点
- name: ♻️ 自动选择
type: url-test
lazy: true
url: http://www.gstatic.com/generate_204
interval: 600
use:
- Subscribe
proxies:
# - ss1 # 把自定义节点添加进自动选择
# *local-proxy # 自建引用锚点进行合并(不可和手动添加混用)
- name: 🐟 漏网之鱼
<<: *all-proxy
proxies: [🚀 手动切换, DIRECT]
rules:
- GEOIP,CN,DIRECT
- GEOIP,LAN,DIRECT
- DOMAIN,google.com,🚀 手动切换
- DOMAIN-SUFFIX,t.me,🚀 手动切换
- DOMAIN-SUFFIX,telegra.ph,🚀 手动切换
- DOMAIN-SUFFIX,telegram.me,🚀 手动切换
- DOMAIN-SUFFIX,telegram.org,🚀 手动切换
- IP-CIDR,162.159.193.0/24,DIRECT
- IP-CIDR,91.108.0.0/16,🚀 手动切换,no-resolve
- IP-CIDR,109.239.140.0/24,🚀 手动切换,no-resolve
- IP-CIDR,149.154.160.0/20,🚀 手动切换,no-resolve
- DOMAIN-KEYWORD,-cn,DIRECT
- DOMAIN-SUFFIX,local,DIRECT
- DOMAIN-SUFFIX,cn,DIRECT
- DOMAIN-SUFFIX,umeng.com,REJECT
- DOMAIN-SUFFIX,umtrack.com,REJECT
- DOMAIN-SUFFIX,ad.xiaomi.com,REJECT
- DOMAIN-SUFFIX,ad1.xiaomi.com,REJECT
- MATCH,🐟 漏网之鱼 # 未匹配到使用漏网之鱼 可以理解为黑名单模式
# - MATCH, DIRECT # 未匹配到使用直连 即白名单模式