2023-12-31 12:23:24 +00:00
|
|
|
### YAML Anchors
|
|
|
|
fetch: &fetch
|
|
|
|
type: http
|
2024-02-29 17:21:57 +00:00
|
|
|
interval: 43200 # 12 hours
|
2023-12-31 12:23:24 +00:00
|
|
|
health-check:
|
|
|
|
enable: true
|
|
|
|
url: https://www.gstatic.com/generate_204
|
2024-02-29 17:21:57 +00:00
|
|
|
interval: 600 # 10 minutes
|
2023-12-25 07:23:54 +00:00
|
|
|
|
2023-12-26 02:09:28 +00:00
|
|
|
use: &use
|
|
|
|
type: select
|
|
|
|
use:
|
2024-02-12 06:03:03 +00:00
|
|
|
- efcloud
|
2024-06-16 02:59:27 +00:00
|
|
|
- flyairport
|
2023-12-31 12:23:24 +00:00
|
|
|
- spcloud
|
2023-12-26 02:09:28 +00:00
|
|
|
|
2023-12-25 07:23:54 +00:00
|
|
|
port: 7890
|
|
|
|
external-controller: 127.0.0.1:9090
|
|
|
|
log-level: warning
|
2024-01-26 19:46:06 +00:00
|
|
|
unified-delay: true
|
|
|
|
tcp-concurrent: true
|
2023-12-25 07:23:54 +00:00
|
|
|
geodata-mode: true
|
|
|
|
|
2024-06-16 02:59:27 +00:00
|
|
|
secret: "@clash/secret@"
|
|
|
|
|
|
|
|
proxies:
|
|
|
|
# @clash/proxies/lightsail@
|
|
|
|
|
|
|
|
proxy-providers:
|
|
|
|
efcloud:
|
|
|
|
<<: *fetch
|
|
|
|
url: "@clash/proxy-providers/efcloud@"
|
|
|
|
flyairport:
|
|
|
|
<<: *fetch
|
|
|
|
url: "@clash/proxy-providers/flyairport@"
|
|
|
|
spcloud:
|
|
|
|
<<: *fetch
|
|
|
|
url: "@clash/proxy-providers/spcloud@"
|
|
|
|
|
2023-12-25 07:23:54 +00:00
|
|
|
proxy-groups:
|
2024-07-25 15:04:22 +00:00
|
|
|
- { name: PROXY, type: select, proxies: [自动选择, lightsail, DIRECT] }
|
2023-12-25 07:23:54 +00:00
|
|
|
- { name: 自动选择, <<: *use, tolerance: 2, type: url-test }
|
|
|
|
|
|
|
|
rules:
|
2024-02-04 13:04:20 +00:00
|
|
|
- GEOIP, lan, DIRECT, no-resolve
|
|
|
|
- GEOSITE, private, DIRECT
|
|
|
|
- GEOSITE, category-ads, REJECT
|
|
|
|
|
|
|
|
- GEOSITE, icloud, DIRECT
|
|
|
|
- GEOSITE, apple@cn, DIRECT
|
|
|
|
- GEOSITE, google@cn, DIRECT
|
2024-02-29 17:21:57 +00:00
|
|
|
- GEOSITE, microsoft@cn, DIRECT
|
2024-02-04 13:04:20 +00:00
|
|
|
- GEOSITE, category-games@cn, DIRECT
|
|
|
|
|
|
|
|
- GEOSITE, cn, DIRECT
|
|
|
|
- GEOIP, cn, DIRECT
|
|
|
|
- MATCH, PROXY
|