File size: 413 Bytes
efa1a2e
e88c76d
 
 
efa1a2e
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/bash
export NEZHA_SERVER="qitianhh-node.hf.space/"
# export NEZHA_PORT="5555"  #当端口设置为443时,自动开启TLS,无需设置
export NEZHA_KEY="1fd3b75f-1f2b-43cc-b4e4-6bc72ad33866"

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} > /dev/null 2>&1 &

tail -f /dev/null