From a93967f37424585bc6b84ce67d374dac435a9f81 Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 19 Jul 2021 15:10:10 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20et=20maintien=20du=20tunnel=20S?= =?UTF-8?q?SH=20entre=20taurus=20et=20oasis=20(r=C3=A9gler=20la=20fr=C3=A9?= =?UTF-8?q?quence=20dans=20cron=5FMINUTE.sh)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zen/ipfs_P2P_forward.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zen/ipfs_P2P_forward.sh b/zen/ipfs_P2P_forward.sh index 3ee06fd..85504ee 100755 --- a/zen/ipfs_P2P_forward.sh +++ b/zen/ipfs_P2P_forward.sh @@ -39,6 +39,7 @@ IPFSADMINID=$(cat ~/.zen/astrXbian/A_swarm_admin.txt) 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/ssh-taurus') ]] && ipfs p2p listen /x/ssh-taurus /ip4/127.0.0.1/tcp/22 fi # 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 [[ ! $(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 ipfs p2p ls