Spaces:
Running
Running
File size: 486 Bytes
2c34047 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/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@ |