From 8f5d76a4716422ecf350ffba9815db0e371a95e1 Mon Sep 17 00:00:00 2001 From: zu1k Date: Fri, 14 Aug 2020 10:27:40 +0800 Subject: [PATCH] mod assets --- api/router.go | 7 ++- {example => assets}/clash-config.yaml | 0 {example => assets}/clash.html | 0 assets/index.html | 88 +++++++++++++++++++++++++++ {example => assets}/source.yaml | 0 assets/surge.html | 85 ++++++++++++++++++++++++++ 6 files changed, 177 insertions(+), 3 deletions(-) rename {example => assets}/clash-config.yaml (100%) rename {example => assets}/clash.html (100%) create mode 100644 assets/index.html rename {example => assets}/source.yaml (100%) create mode 100644 assets/surge.html diff --git a/api/router.go b/api/router.go index 05d6e9f..334e86b 100644 --- a/api/router.go +++ b/api/router.go @@ -13,9 +13,10 @@ var router *gin.Engine func setupRouter() { router = gin.Default() - router.StaticFile("/", "example/clash.html") - router.StaticFile("/clash", "example/clash.html") - router.StaticFile("/clash/config", "example/clash-config.yaml") + router.StaticFile("/", "assets/index.html") + router.StaticFile("/clash", "assets/clash.html") + router.StaticFile("/surge", "assets/surge.html") + router.StaticFile("/clash/config", "assets/clash-config.yaml") router.GET("/clash/proxies", func(c *gin.Context) { text := cache.GetString("clashproxies") if text == "" { diff --git a/example/clash-config.yaml b/assets/clash-config.yaml similarity index 100% rename from example/clash-config.yaml rename to assets/clash-config.yaml diff --git a/example/clash.html b/assets/clash.html similarity index 100% rename from example/clash.html rename to assets/clash.html diff --git a/assets/index.html b/assets/index.html new file mode 100644 index 0000000..847e1e8 --- /dev/null +++ b/assets/index.html @@ -0,0 +1,88 @@ + + + + + + + 免费节点 + + + +
+
+

免费节点

+
+

自动抓取tg频道、订阅地址、公开互联网上的ss、ssr、vmess节点信息,聚合去重后提供节点列表,每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

+
+
+
+ + \ No newline at end of file diff --git a/example/source.yaml b/assets/source.yaml similarity index 100% rename from example/source.yaml rename to assets/source.yaml diff --git a/assets/surge.html b/assets/surge.html new file mode 100644 index 0000000..bee6cba --- /dev/null +++ b/assets/surge.html @@ -0,0 +1,85 @@ + + + + + + + 免费Surge节点 + + + +
+
+

免费Surge节点

+
+

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

+
+

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

+
+

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

+
+
+
+ + \ No newline at end of file