Last active
September 30, 2022 04:26
-
-
Save diaolizhi/f46076880657c1bd7903155a151448e8 to your computer and use it in GitHub Desktop.
clash.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[custom] | |
;这是一个外部配置文件示例 | |
;所有可能的自定义设置如下所示 | |
;用于自定义组的选项 会覆盖 主程序目录中的配置文件 里的内容 | |
;使用以下模式生成 Clash 代理组,带有 "[]" 前缀将直接添加 | |
;Format: Group_Name`select`Rule_1`Rule_2`... | |
; Group_Name`url-test|fallback|load-balance`Rule_1`Rule_2`...`test_url`interval[,timeout][,tolerance] | |
;Rule with "[]" prefix will be added directly. | |
custom_proxy_group=Proxy`select`.*`[]AUTO`[]DIRECT`.* | |
custom_proxy_group=UrlTest`url-test`.*`http://www.gstatic.com/generate_204`300,5,100 | |
custom_proxy_group=FallBack`fallback`.*`http://www.gstatic.com/generate_204`300,5 | |
custom_proxy_group=LoadBalance`load-balance`.*`http://www.gstatic.com/generate_204`300,,100 | |
custom_proxy_group=SSID`ssid`default_group`celluar=group0,ssid1=group1,ssid2=group2 | |
;custom_proxy_group=g1`select`!!GROUPID=0 | |
;custom_proxy_group=g2`select`!!GROUPID=1 | |
;custom_proxy_group=v2ray`select`!!GROUP=V2RayProvider | |
;custom_proxy_group=g1hk`select`!!GROUPID=0!!(HGC|HKBN|PCCW|HKT|hk|港) | |
;custom_proxy_group=sstw`select`!!GROUP=V2RayProvider!!(深台|彰化|新北|台|tw) | |
;custom_proxy_group=provider`select`!!PROVIDER=prov1,prov2,prov3`fallback_nodes | |
;用于自定义规则的选项 会覆盖 主程序目录中的配置文件 里的内容 | |
;Ruleset addresses, supports local files/URL | |
;Format: Group name,[type:]URL[,interval] | |
; Group name,[]Rule | |
;where "type" supports the following value: surge, quanx, clash-domain, clash-ipcidr, clash-classic | |
;type defaults to surge if omitted | |
enable_rule_generator=false | |
overwrite_original_rules=false | |
;ruleset=DIRECT,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Unbreak.list,86400 | |
;ruleset=🎯 全球直连,rules/LocalAreaNetwork.list | |
;ruleset=DIRECT,surge:rules/LocalAreaNetwork.list | |
;ruleset=Advertising,quanx:https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Guard/Advertising.list,86400 | |
;ruleset=Domestic Services,clash-domain:https://ruleset.dev/clash_domestic_services_domains,86400 | |
;ruleset=Domestic Services,clash-ipcidr:https://ruleset.dev/clash_domestic_services_ips,86400 | |
ruleset=Proxies,clash-classic:https://gist.githubusercontent.com/diaolizhi/f46076880657c1bd7903155a151448e8/raw/47c4c6630ba7474db624d5bd37b5eb49b6c0f168/payload.yml,86400 | |
;ruleset=🎯 全球直连,[]GEOIP,CN | |
;ruleset=🐟 漏网之鱼,[]FINAL | |
;用于自定义基础配置的选项 会覆盖 主程序目录中的配置文件 里的内容 | |
clash_rule_base=base/forcerule.yml | |
;surge_rule_base=base/surge.conf | |
;surfboard_rule_base=base/surfboard.conf | |
;mellow_rule_base=base/mellow.conf | |
;quan_rule_base=base/quan.conf | |
;quanx_rule_base=base/quanx.conf | |
;用于自定义重命名的选项 会覆盖 主程序目录中的配置文件 里的内容 | |
;rename=Test-(.*?)-(.*?)-(.*?)\((.*?)\)@\1\4x测试线路_自\2到\3 | |
;rename=\(?((x|X)?(\d+)(\.?\d+)?)((\s?倍率?)|(x|X))\)?@$1x | |
;用于自定义 Emoji 的选项 会覆盖 主程序目录中的配置文件 里的内容 | |
;add_emoji=true | |
;remove_old_emoji=true | |
;emoji=(流量|时间|应急),🏳️🌈 | |
;emoji=阿根廷,🇦🇷 | |
;用于包含或排除节点关键词的选项 会覆盖 主程序目录中的配置文件 里的内容 | |
include_remarks= | |
;exclude_remarks= | |
;[template] | |
;;局部作用于模板中的变量 | |
;clash.dns.port=5353 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
payload: | |
- DOMAIN,translate.googleapis.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment