Update initRVP_http.sh
This commit is contained in:
parent
3f85c69e5f
commit
e88cf5853e
|
@ -1,4 +1,8 @@
|
|||
|
||||
# Set the target host and port
|
||||
TARGET_HOST="androidnasserver1"
|
||||
TARGET_PORT="80"
|
||||
LOCAL_PORT="8080"
|
||||
SERVEO_DOMAIN="serveo.net"
|
||||
|
||||
|
||||
EXISTING_SSH_PID=$(pgrep -f "ssh -R 80:localhost:8080 serveo.net")
|
||||
|
@ -7,6 +11,7 @@
|
|||
|
||||
if ! [ -n "$EXISTING_SSH_PID" ]; then
|
||||
# Start reverse port forwarding in the background
|
||||
nohup caddy reverse-proxy --from :2638 --to :8080
|
||||
ssh -R $TARGET_HOST:$TARGET_PORT:127.0.0.1:$LOCAL_PORT $SERVEO_DOMAIN > /data/data/com.termux/files/home/.cronlog/cronlog.txt 2>&1 &
|
||||
nohup caddy reverse-proxy --from :2638 --to :8080
|
||||
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user