Skip to content

Instantly share code, notes, and snippets.

@chrisyip
Created August 24, 2020 06:47
Show Gist options
  • Save chrisyip/b123c91d9fe0f6d0377870dee8062ccd to your computer and use it in GitHub Desktop.
Save chrisyip/b123c91d9fe0f6d0377870dee8062ccd to your computer and use it in GitHub Desktop.
proxy-providers:
provider-name1: # 后面规则匹配会用到的名字
type: http # 从网络地址获取节点列表
url: "https://clash/node/list.yaml"
interval: 3600 # 更新周期
path: ./node_list_1.yaml # 节点列表的临时缓存文件
health-check: # 用 proxy provider 后,规则内的健康检查会失效,需要单独设置
enable: true
interval: 600
url: http://www.gstatic.com/generate_204
proxy-providers:
provider-name2:
type: file # 从本地文件获取节点
path: /test.yaml # 节点保存的列表
health-check:
enable: true
interval: 36000
url: http://www.gstatic.com/generate_204
proxy-groups:
- name: group1
type: select
use: # 通过 use 会将列出的 provider 中的节点全加载进来
- provider-name1
- provider-name2
rules
- DOMAIN-SUFFIX,wikipedia,group1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment