diff --git a/api/router.go b/api/router.go index 334e86b..4d1234e 100644 --- a/api/router.go +++ b/api/router.go @@ -17,6 +17,7 @@ func setupRouter() { router.StaticFile("/clash", "assets/clash.html") router.StaticFile("/surge", "assets/surge.html") router.StaticFile("/clash/config", "assets/clash-config.yaml") + router.StaticFile("/surge/config", "assets/surge.conf") router.GET("/clash/proxies", func(c *gin.Context) { text := cache.GetString("clashproxies") if text == "" { diff --git a/assets/index.html b/assets/index.html index 847e1e8..1e346e1 100644 --- a/assets/index.html +++ b/assets/index.html @@ -78,9 +78,10 @@

Clash配置文件:https://proxy.tgbot.co/clash/config 一键导入

Clash proxy-provider:https://proxy.tgbot.co/clash/proxies


-

Surge proxy list:https://proxy.tgbot.co/surge/proxies

-
-

抓取程序已开源:https://github.com/zu1k/proxypool

+

Surge配置文件:https://proxy.tgbot.co/surge/config 一键导入

+

Surge proxy list:https://proxy.tgbot.co/surge/proxies

+
+

抓取程序已开源:https://github.com/zu1k/proxypool

diff --git a/assets/surge.conf b/assets/surge.conf new file mode 100644 index 0000000..8f13c9f --- /dev/null +++ b/assets/surge.conf @@ -0,0 +1,45 @@ +[Proxy] +Direct = direct + +[Proxy Group] +Proxy = select, 延迟最低, 失败切换, 手动选择 +延迟最低 = url-test, policy-path=https://proxy.tgbot.co/surge/proxies, url=http://www.qualcomm.cn/generate_204, update-interval=3600, interval = 600s, tolerance = 100ms, timeout = 5s, evaluate-before-use = true +失败切换 = fallback, policy-path=https://proxy.tgbot.co/surge/proxies, url=http://www.qualcomm.cn/generate_204, update-interval=3600, interval = 600s, tolerance = 100ms, timeout = 5s, evaluate-before-use = true +手动选择 = select, policy-path=https://proxy.tgbot.co/surge/proxies, url=http://www.qualcomm.cn/generate_204, update-interval=3600, interval = 600s, tolerance = 100ms, timeout = 5s, evaluate-before-use = true +Apple = select, Direct, Proxy +Adblock = select, Direct, REJECT, REJECT-TINYGIF + +[Rule] +# RULESET +RULE-SET,SYSTEM,Direct +# +# Unbreak 后续规则修正 +RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/Unbreak.list,Adblock +# Advertising 广告 +RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/Guard/Advertising.list,Adblock +# Privacy 隐私 +# RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/Guard/Privacy.list,Adblock +# Hijacking 运营商劫持或恶意网站 +RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/Guard/Hijacking.list,Adblock +# +# Apple +RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/Extra/Apple/Apple.list,Apple +# +# 代理 +# Streaming 国际流媒体服务 +RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/StreamingMedia/Streaming.list,Proxy +# StreamingSE 中国流媒体服务(面向海外版本) +RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/StreamingMedia/StreamingSE.list,Proxy +# Global 全球加速 +RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/Global.list,Proxy +# +RULE-SET,https://github.com/Hackl0us/SS-Rule-Snippet/raw/master/Rulesets/App/social/Telegram.list,Proxy +RULE-SET,https://github.com/Hackl0us/SS-Rule-Snippet/raw/master/Rulesets/App/social/WhatsApp.list,Proxy +RULE-SET,https://github.com/Hackl0us/SS-Rule-Snippet/raw/master/Rulesets/App/social/LINE.list,Proxy +# +# Direct +RULE-SET,https://github.com/DivineEngine/Profiles/raw/master/Surge/Ruleset/Extra/ChinaIP.list,Direct +# +RULE-SET,LAN,Direct +# GEOIP,CN,Direct +FINAL,Proxy,dns-failed diff --git a/assets/surge.html b/assets/surge.html index bee6cba..fe3faf9 100644 --- a/assets/surge.html +++ b/assets/surge.html @@ -75,6 +75,7 @@

自动抓取tg频道、订阅地址、公开互联网上的ss、vmess节点信息,聚合去重后提供Surge节点列表,每10分钟更新


+

Surge配置文件:https://proxy.tgbot.co/surge/config 一键导入

Surge proxy list:https://proxy.tgbot.co/surge/proxies


抓取程序已开源:https://github.com/zu1k/proxypool