broken-mobile-server/initNavidrome_http.sh
arul aa2c1bf57b Upload files to "/"
The initRVP spawns all this server scripts and exposes them to public network
by tunneling the service to serveo.net via ssh
2024-06-02 20:44:40 +00:00

10 lines
252 B
Bash

EXISTING_SSH_PID=$(pgrep -f "ssh -R 80:localhost:4533 serveo.net")
echo $EXISTING_SSH_PID
if ! [ -n "$EXISTING_SSH_PID" ]; then
# Start reverse proxy in the background
nohup caddy reverse-proxy --from :2637 --to :4533
fi