Download start.sh from xrunx/a: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/spaces/xrunx/a/resolve/main/start.sh
- Command line
-
hf download hf://spaces/xrunx/a/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/xrunx/a/resolve/main/start.sh
790 Bytes
| # Nezha监控配置 - 请根据实际情况修改 | |
| export NEZHA_SERVER="xxx.xxxx.com" | |
| export NEZHA_PORT="5555" # 当端口设置为443时,自动开启TLS | |
| export NEZHA_KEY="d0hJ9XrXSb1abcdefg" | |
| # Vless配置 - 请根据实际情况修改 | |
| export UUID="e6542600-b09f-4dac-be5d-1c32fca89901" | |
| export NAME="Huggingface-Vless" | |
| # 启动Nezha监控客户端 | |
| chmod +x server | |
| if [ "$NEZHA_PORT" = "443" ]; then | |
| NEZHA_TLS="--tls" | |
| else | |
| NEZHA_TLS="" | |
| fi | |
| # 后台启动Nezha监控 | |
| nohup ./server -s ${NEZHA_SERVER}:${NEZHA_PORT} -p ${NEZHA_KEY} ${NEZHA_TLS} --skip-conn --disable-auto-update --skip-procs --report-delay 4 > /dev/null 2>&1 & | |
| # 启动Node.js应用 | |
| echo "启动Vless代理服务..." | |
| echo "UUID: $UUID" | |
| echo "Nezha服务器: $NEZHA_SERVER:$NEZHA_PORT" | |
| node index.js | |