Trojan-Demo / startup.sh
tastypear's picture
init
2c34047 verified
raw
history blame contribute delete
486 Bytes
#!/bin/bash
# a little trick to avoid getting stuck on Starting
python -m http.server 7860 & kill $!
cat << EOF
This is a Tro${@}jan server demo.
Create the secrets below in Space Settings.
PASSWORD (*required)
WS_PATH (optional, eg: /api/path)
HOST is the direct domain of your Space, similar to [username-space-name.hf.space].
To confirm, you MUST set the Space to public and then click [...] - [Embed this Space].
EOF
./glider -listen ws://:7860$WS_PATH,tro${@}janc://$PASSWORD@