File size: 790 Bytes
4153c82 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/usr/bin/bash
# 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
|