$IPFSNODEID

This commit is contained in:
fred 2022-10-26 14:55:33 +02:00
parent 3e5a459168
commit 431f01adcd
4 changed files with 6 additions and 4 deletions

View File

@ -63,6 +63,7 @@ Server: Astroport
Content-Type: text/html; charset=UTF-8
" > ~/.zen/tmp/123/${MOATS}.index.redirect
sed "s~127.0.0.1~$myIP~g" $HOME/.zen/Astroport.ONE/templates/homepage.html >> ~/.zen/tmp/123/${MOATS}.index.redirect
sed -i "s~_IPFSNODEID_~$IPFSNODEID~g" ~/.zen/tmp/123/${MOATS}.index.redirect
cat ~/.zen/tmp/123/${MOATS}.index.redirect | nc -l -p ${PORT} -q 1 &

View File

@ -12,8 +12,7 @@ ME="${0##*/}"
TS=$(date -u +%s%N | cut -b1-13)
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
killall 12345.sh
killall nc
killall 12345.sh; killall nc
echo '
_ ____ _____ ____ ___ ____ ___ ____ _____ ___ _ _ _____
@ -36,7 +35,7 @@ YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail
[[ ! $YOU ]] && echo "Lancez 'ipfs daemon' SVP sudo systemctl start ipfs" && exit 1
IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID)
echo "LAUNCHING 1234 PORT REDIRECTING SPIDER http://myIP:1234"
echo "LAUNCHING 1234 PORT REDIRECTING SPIDER http://$myIP:1234"
~/.zen/Astroport.ONE/12345.sh > ~/.zen/tmp/12345.log &
## CREATE AND OR CONNECT USER

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>[Astroport] Système de Fichier Interplanétaire - Terraformation Forêt Jardin</title>
<title>[Astroport] Système de Fichier Interplanétaire - Station _IPFSNODEID_ </title>
<link rel="icon" type="image/png" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/logo.png" />
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/decoration.css" type="text/css" />
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/layout.css" type="text/css" />

View File

@ -5,6 +5,8 @@ Content-Type: text/html; charset=UTF-8
<!DOCTYPE html>
<html>
<head>
<title>[Astroport] Redirecting ... Please refresh if failed</title>
<meta http-equiv="refresh" content="0; url='_TWLINK_'" />
</head>
<body>