42 lines
674 B
YAML
42 lines
674 B
YAML
# port of HTTP
|
|
port: 7890
|
|
|
|
# port of SOCKS5
|
|
socks-port: 7891
|
|
|
|
# (HTTP and SOCKS5 in one port)
|
|
# mixed-port: 7890
|
|
|
|
# redir port for Linux and macOS
|
|
# redir-port: 7892
|
|
|
|
allow-lan: false
|
|
mode: rule
|
|
log-level: info
|
|
external-controller: 127.0.0.1:9090
|
|
|
|
proxies:
|
|
|
|
proxy-groups:
|
|
- name: free
|
|
type: select
|
|
use:
|
|
- free
|
|
proxies:
|
|
- DIRECT
|
|
|
|
proxy-providers:
|
|
free:
|
|
type: http
|
|
url: "http://127.0.0.1:8080/clash/proxies"
|
|
interval: 3600
|
|
path: ./free.yaml
|
|
health-check:
|
|
enable: true
|
|
interval: 600
|
|
url: http://www.gstatic.com/generate_204
|
|
|
|
rules:
|
|
- IP-CIDR,127.0.0.0/8,DIRECT
|
|
- IP-CIDR,192.168.0.0/16,DIRECT
|
|
- MATCH,free |