Upload files to "/"

Test Scripts
This commit is contained in:
arul 2024-06-02 20:46:40 +00:00
parent 969e55ac42
commit 6001b40925
3 changed files with 22 additions and 0 deletions

4
msInit.sh Normal file
View File

@ -0,0 +1,4 @@
navidrome > /data/data/com.termux/files/home/.cronlog/navidrome_log.txt 2>&1 &
sleep 4
bash ~/.custmScrpt/initNavidrome_http.sh

8
site-init Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
ssh -L 8080:localhost:1111 root@192.168.29.158 -p 2222 -N &> /dev/null &
caddy reverse-proxy --from :1111 --to :1110 &> /dev/null &

10
test.sh Normal file
View File

@ -0,0 +1,10 @@
# Set the target host and port
TARGET_HOST="androidnasserver1"
TARGET_PORT="22"
LOCAL_PORT="8022"
SERVEO_DOMAIN="serveo.net"
# Check if reverse port forwarding is already active, then kill the active reverse port forwarding
ssh -R $TARGET_HOST:$TARGET_PORT:127.0.0.1:$LOCAL_PORT $SERVEO_DOMAIN