| #!/usr/bin/bash |
|
|
| |
| export NEZHA_SERVER="xxx.xxxx.com" |
| export NEZHA_PORT="5555" |
| export NEZHA_KEY="d0hJ9XrXSb1abcdefg" |
|
|
| |
| export UUID="e6542600-b09f-4dac-be5d-1c32fca89901" |
| export NAME="Huggingface-Vless" |
|
|
| |
| chmod +x server |
| if [ "$NEZHA_PORT" = "443" ]; then |
| NEZHA_TLS="--tls" |
| else |
| NEZHA_TLS="" |
| fi |
|
|
| |
| 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 & |
|
|
| |
| echo "启动Vless代理服务..." |
| echo "UUID: $UUID" |
| echo "Nezha服务器: $NEZHA_SERVER:$NEZHA_PORT" |
|
|
| node index.js |
|
|