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
This commit is contained in:
parent
3d2fbeb725
commit
aa2c1bf57b
6
initMySpace.sh
Normal file
6
initMySpace.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
nohup ssh -vL 8081:localhost:8081 root@192.168.29.158 -p 2222 -N > output.log 2>&1 &
|
||||
sleep 8
|
||||
nginx
|
||||
nohup ssh -NT -o ServerAliveInterval=60 -o ServerAliveCountMax=10 -o ExitOnForwardFailure=yes -v -R 8080:127.0.0.1:8080 root@74.208.17.166 </dev/null >output.log 2>&1 &
|
||||
sleep 8
|
||||
echo "[+] Tunneling process ran successfully!!!"
|
9
initNavidrome_http.sh
Normal file
9
initNavidrome_http.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
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
|
12
initRVP_http.sh
Normal file
12
initRVP_http.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
|
||||
|
||||
EXISTING_SSH_PID=$(pgrep -f "ssh -R 80:localhost:8080 serveo.net")
|
||||
echo $EXISTING_SSH_PID
|
||||
|
||||
|
||||
if ! [ -n "$EXISTING_SSH_PID" ]; then
|
||||
# Start reverse port forwarding in the background
|
||||
nohup caddy reverse-proxy --from :2638 --to :8080
|
||||
|
||||
fi
|
Loading…
Reference in New Issue
Block a user