Download start.sh from dirk1983/v2ray: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/spaces/dirk1983/v2ray/resolve/main/start.sh
- Command line
-
hf download hf://spaces/dirk1983/v2ray/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/dirk1983/v2ray/resolve/main/start.sh
544 Bytes
| echo "Starting tmate..." | |
| tmate -S /tmp/tmate.sock new-session -d | |
| tmate -S /tmp/tmate.sock wait tmate-ready | |
| TMATE_SSH=$(tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}') | |
| echo "=====================================================================" | |
| echo "可以通过以下命令无密码 SSH 登录到当前容器:" | |
| echo "$TMATE_SSH" | |
| echo "=====================================================================" | |
| echo "Starting V2Ray..." | |
| v2ray -c /app/v2ray.json & | |
| echo "Starting Caddy..." | |
| exec caddy run --config /app/Caddyfile |