-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathAuto_proxy_example.yaml
More file actions
50 lines (42 loc) · 1.13 KB
/
Auto_proxy_example.yaml
File metadata and controls
50 lines (42 loc) · 1.13 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
#---------------------------------------------------#
## 配置文件需要放置在 $HOME/.config/clash/*.yaml
## 这份文件是clashX的基础配置文件,请尽量新建配置文件进行修改。
## !!!只有这份文件的端口设置会随ClashX启动生效
## 如果您不知道如何操作,请参阅 官方Github文档 https://github.com/Dreamacro/clash/blob/dev/README.md
#---------------------------------------------------#
# (HTTP and SOCKS5 in one port)
mixed-port: 7890
# RESTful API for clash
external-controller: 127.0.0.1:9090
allow-lan: true
mode: global
log-level: warning
socks-port: 7891
port: 7892
proxies:
proxy-groups:
-
name: 加速模式
type: url-test
proxies:
url: 'https://baidu.com/'
interval: 300
-
name: 负载均衡
type: load-balance
proxies:
url: 'https://baidu.com/'
interval: 300
strategy: "round-robin"
-
name: 直接连接
type: select
proxies:
- DIRECT
rules:
- DOMAIN-SUFFIX,google.com,DIRECT
- DOMAIN-KEYWORD,google,DIRECT
- DOMAIN,google.com,DIRECT
- DOMAIN-SUFFIX,ad.com,REJECT
- GEOIP,CN,DIRECT
- MATCH,DIRECT