From 1114b8acd37e94e313ff5c33995e1b283a2f24b0 Mon Sep 17 00:00:00 2001 From: SunBK201 Date: Thu, 28 Dec 2023 23:18:23 +0800 Subject: [PATCH] docs: update clash conf --- README.md | 8 +++---- example.yaml => clash/example.yaml | 6 ----- clash/ua3f-cn.yaml | 33 ++++++++++++++++++++++++++++ clash.yaml => clash/ua3f-global.yaml | 1 - 4 files changed, 37 insertions(+), 11 deletions(-) rename example.yaml => clash/example.yaml (68%) create mode 100644 clash/ua3f-cn.yaml rename clash.yaml => clash/ua3f-global.yaml (99%) diff --git a/README.md b/README.md index f344831..1a610dc 100644 --- a/README.md +++ b/README.md @@ -95,13 +95,13 @@ rules: ### Clash 懒人配置 -与 UA3F 适配的懒人配置:[clash.yaml](https://cdn.jsdelivr.net/gh/SunBK201/UA3F@master/clash.yaml) - -注意需要在 proxy-providers > Global-ISP > url 中(第 76 行)加入你的代理节点订阅链接。 +提供 2 个参考配置: +1. 国内版,无需进行任何修改,可直接使用 [ua3f-cn.yaml](https://cdn.jsdelivr.net/gh/SunBK201/UA3F@master/clash/ua3f-cn.yaml) +2. 国际版,针对有特定需求的特殊用户进行适配,[ua3f-global.yaml](https://cdn.jsdelivr.net/gh/SunBK201/UA3F@master/clash/ua3f-global.yaml),注意需要在 proxy-providers > Global-ISP > url 中(第 76 行)加入你的代理节点订阅链接。 ## Roadmap -- [ ] 支持 LuCI +- [x] 支持 LuCI - [x] 优化部署流程 - [ ] 支持 SOCK5 Auth - [ ] 支持 UDP diff --git a/example.yaml b/clash/example.yaml similarity index 68% rename from example.yaml rename to clash/example.yaml index 97b12d2..e53f948 100644 --- a/example.yaml +++ b/clash/example.yaml @@ -1,14 +1,8 @@ mixed-port: 7890 allow-lan: false -bind-address: '*' mode: rule -log-level: info -external-controller: 127.0.0.1:9090 ipv6: false -profile: - store-selected: false - proxies: - name: "ua3f" type: socks5 diff --git a/clash/ua3f-cn.yaml b/clash/ua3f-cn.yaml new file mode 100644 index 0000000..4f3d322 --- /dev/null +++ b/clash/ua3f-cn.yaml @@ -0,0 +1,33 @@ +--- +#--------------------------------------------------------------------------------------# +# Written by SunBK201 +# https://github.com/SunBK201/UA3F +#--------------------------------------------------------------------------------------# +mixed-port: 7890 +#--------------------------------------------------------------------------------------# +ipv6: false +mode: rule +#--------------------------------------------------------------------------------------# +dns: +#--------------------------------------------------------------------------------------# +proxies: + - name: "ua3f" + type: socks5 + server: 127.0.0.1 + port: 1080 + url: http://connectivitycheck.platform.hicloud.com/generate_204 + udp: false +#--------------------------------------------------------------------------------------# +proxy-providers: +#--------------------------------------------------------------------------------------# +proxy-groups: +#--------------------------------------------------------------------------------------# +rules: + - PROCESS-NAME,ua3f,DIRECT + - NETWORK,udp,DIRECT + - MATCH,ua3f +#--------------------------------------------------------------------------------------# +rule-providers: +#--------------------------------------------------------------------------------------# +parsers: +#--------------------------------------------------------------------------------------# diff --git a/clash.yaml b/clash/ua3f-global.yaml similarity index 99% rename from clash.yaml rename to clash/ua3f-global.yaml index 81eb42b..12ed084 100644 --- a/clash.yaml +++ b/clash/ua3f-global.yaml @@ -1,4 +1,3 @@ ---- #--------------------------------------------------------------------------------------# # Written by SunBK201 # https://github.com/SunBK201/UA3F