Download start.sh from qitianhh/node: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/qitianhh/node/resolve/main/start.sh
- Command line
-
hf download hf://spaces/qitianhh/node/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/qitianhh/node/resolve/main/start.sh
413 Bytes
| 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 | |