From cb3722f4621c6f61ff80baab24e53689a052cbda Mon Sep 17 00:00:00 2001 From: wystan_rin <2287220381@qq.com> Date: Wed, 6 Nov 2024 15:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clash配置文件 Signed-off-by: wystan_rin <2287220381@qq.com> --- cfw-settings.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ config.yaml | 20 ++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 cfw-settings.yaml create mode 100644 config.yaml diff --git a/cfw-settings.yaml b/cfw-settings.yaml new file mode 100644 index 0000000..5ea9ed3 --- /dev/null +++ b/cfw-settings.yaml @@ -0,0 +1,47 @@ +showNewVersionIcon: true +hideAfterStartup: false +randomControllerPort: true +runTimeFormat: "hh : mm : ss" +trayOrders: + - - icon + - - status + - traffic + - text +hideTrayIcon: false +connShowProcess: true +showTrayProxyDelayIndicator: true +checkForUpdates: true +mixinText: |- + mixin: # object + rules: + - DOMAIN-SUFFIX,bing.com,DIRECT +mixinType: 1 +mixinCode: |- + module.exports.parse = async ( + { content, name, url }, + { axios, yaml, notify } + ) => { + const extra = { + rules: [ + 'DOMAIN-SUFFIX,bing.com,DIRECT', + 'DOMAIN-SUFFIX,csdn.net,DIRECT', + 'DOMAIN-SUFFIX,csdnimg.cn,DIRECT', + 'DOMAIN-SUFFIX,cnblogs.com,DIRECT', + 'DOMAIN-SUFFIX,jianshu.com,DIRECT', + 'DOMAIN-SUFFIX,kanxue.com,DIRECT', + 'DOMAIN-SUFFIX,zhihu.com,DIRECT', + 'DOMAIN-SUFFIX,bilibili.com,DIRECT', + 'DOMAIN-SUFFIX,apple.com,DIRECT', + 'DOMAIN-SUFFIX,xiaohongshu.com,DIRECT', + 'DOMAIN-SUFFIX,zsxq.com,DIRECT', + 'DOMAIN-SUFFIX,visualstudio.com,DIRECT', + 'DOMAIN-SUFFIX,microsoft.com,DIRECT', + 'DOMAIN-SUFFIX,oschina.net,DIRECT', + 'DOMAIN-SUFFIX,mchat.com,DIRECT', + 'DOMAIN-SUFFIX,.cn,DIRECT', + // 'IP-CIDR,8.288.176.170/32,DIRECT', + ...content.rules, + ], + } + return { ...content, ...extra } + } diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..6c0a8c4 --- /dev/null +++ b/config.yaml @@ -0,0 +1,20 @@ +mixed-port: 7890 +allow-lan: false +log-level: info +external-controller: '127.0.0.1:10605' +secret: '' +ipv6: false + +# Will be ignored after profile selection +proxies: + - name: Debug + type: socks5 + server: 127.0.0.1 + port: 1080 +proxy-groups: + - name: Proxy + type: select + proxies: + - Debug +rules: + - 'MATCH,DIRECT'