Création et maintien du tunnel SSH entre taurus et oasis (régler la fréquence dans cron_MINUTE.sh)
This commit is contained in:
parent
92d94c37de
commit
a93967f374
|
@ -39,6 +39,7 @@ IPFSADMINID=$(cat ~/.zen/astrXbian/A_swarm_admin.txt)
|
||||||
|
|
||||||
if [[ "$IPFSNODEID" == "12D3KooWRstYPJSakosgnvvGpxDdUJd2xAncJB7fbBwLBaTAEJxp" ]]; then
|
if [[ "$IPFSNODEID" == "12D3KooWRstYPJSakosgnvvGpxDdUJd2xAncJB7fbBwLBaTAEJxp" ]]; then
|
||||||
[[ ! $(ipfs p2p ls | grep '/x/https-taurus') ]] && ipfs p2p listen /x/https-taurus /ip4/127.0.0.1/tcp/443
|
[[ ! $(ipfs p2p ls | grep '/x/https-taurus') ]] && ipfs p2p listen /x/https-taurus /ip4/127.0.0.1/tcp/443
|
||||||
|
[[ ! $(ipfs p2p ls | grep '/x/ssh-taurus') ]] && ipfs p2p listen /x/ssh-taurus /ip4/127.0.0.1/tcp/22
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# BRING TO OASIS /etc/nginx/sites-available/taurus.copylaradio.com.conf
|
# BRING TO OASIS /etc/nginx/sites-available/taurus.copylaradio.com.conf
|
||||||
|
@ -46,6 +47,8 @@ if [[ "$IPFSNODEID" == "12D3KooWBYme2BsNUrtx4mEdNX6Yioa9AV7opWzQp6nrPs6ZKabN" ]]
|
||||||
# CHECK CONNECTIVITY ipfs --timeout=5s ping /p2p/12D3KooWRstYPJSakosgnvvGpxDdUJd2xAncJB7fbBwLBaTAEJxp
|
# CHECK CONNECTIVITY ipfs --timeout=5s ping /p2p/12D3KooWRstYPJSakosgnvvGpxDdUJd2xAncJB7fbBwLBaTAEJxp
|
||||||
|
|
||||||
[[ ! $(ipfs p2p ls | grep '/x/https-taurus') ]] && ipfs p2p forward /x/https-taurus /ip4/127.0.0.1/tcp/2443 /p2p/12D3KooWRstYPJSakosgnvvGpxDdUJd2xAncJB7fbBwLBaTAEJxp
|
[[ ! $(ipfs p2p ls | grep '/x/https-taurus') ]] && ipfs p2p forward /x/https-taurus /ip4/127.0.0.1/tcp/2443 /p2p/12D3KooWRstYPJSakosgnvvGpxDdUJd2xAncJB7fbBwLBaTAEJxp
|
||||||
|
[[ ! $(ipfs p2p ls | grep '/x/ssh-taurus') ]] && ipfs p2p forward /x/ssh-taurus /ip4/127.0.0.1/tcp/2022 /p2p/12D3KooWRstYPJSakosgnvvGpxDdUJd2xAncJB7fbBwLBaTAEJxp
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ipfs p2p ls
|
ipfs p2p ls
|
||||||
|
|
Loading…
Reference in New Issue