Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +22 -11
entrypoint.sh
CHANGED
|
@@ -75,27 +75,38 @@ ttyd bash &
|
|
| 75 |
|
| 76 |
#v2raya --lite &
|
| 77 |
|
| 78 |
-
#
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
|
|
|
|
|
|
|
| 84 |
|
| 85 |
-
sleep 5
|
| 86 |
|
| 87 |
#curl -I https://discord.com
|
| 88 |
-
curl -Iv https://api.telegram.org
|
| 89 |
|
| 90 |
-
nginx -s stop
|
| 91 |
-
|
| 92 |
|
| 93 |
|
| 94 |
echo "Starting Python bot on port 8888..."
|
| 95 |
-
|
| 96 |
|
| 97 |
|
| 98 |
-
|
| 99 |
#~/.local/bin/nanobot --help
|
| 100 |
|
| 101 |
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|
|
|
|
| 75 |
|
| 76 |
#v2raya --lite &
|
| 77 |
|
| 78 |
+
# 切换到临时目录
|
| 79 |
+
cd /tmp
|
| 80 |
+
|
| 81 |
+
# 下载文件
|
| 82 |
+
curl -Lo https://github.com/go-gost/gost/releases/download/v3.2.6/gost_3.2.6_linux_amd64.tar.gz
|
| 83 |
+
|
| 84 |
+
# 解压
|
| 85 |
+
tar -zxvf gost_3.2.6_linux_amd64.tar.gz
|
| 86 |
+
# 将 gost 移动到系统可执行
|
| 87 |
+
mv gost /usr/local/bin/
|
| 88 |
+
|
| 89 |
+
# 赋予执行权限
|
| 90 |
+
chmod +x /usr/local/bin/gost
|
| 91 |
|
| 92 |
+
# 在本地监听 1080 端口,并将流量通过 wss (加密的ws) 转发给你的 Tunnel
|
| 93 |
+
gost -L http://:1080 -F wss://pxde.806044.xyz:443
|
| 94 |
+
#sh /app/setup_proxy.sh api.telegram.org tgproxy.806044.xyz
|
| 95 |
|
| 96 |
+
#sleep 5
|
| 97 |
|
| 98 |
#curl -I https://discord.com
|
| 99 |
+
curl -Iv -x http://localhost:1080 https://api.telegram.org
|
| 100 |
|
| 101 |
+
#nginx -s stop
|
| 102 |
+
export ALL_PROXY="http://localhost:1080"
|
| 103 |
|
| 104 |
|
| 105 |
echo "Starting Python bot on port 8888..."
|
| 106 |
+
~/.local/bin/nanobot gateway -p 8888 &
|
| 107 |
|
| 108 |
|
| 109 |
+
~/.local/bin/nanobot status
|
| 110 |
#~/.local/bin/nanobot --help
|
| 111 |
|
| 112 |
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|