forked from STI/Astroport.ONE
$IPFSNODEID
This commit is contained in:
parent
3e5a459168
commit
431f01adcd
1
12345.sh
1
12345.sh
|
@ -63,6 +63,7 @@ Server: Astroport
|
||||||
Content-Type: text/html; charset=UTF-8
|
Content-Type: text/html; charset=UTF-8
|
||||||
" > ~/.zen/tmp/123/${MOATS}.index.redirect
|
" > ~/.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 "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 &
|
cat ~/.zen/tmp/123/${MOATS}.index.redirect | nc -l -p ${PORT} -q 1 &
|
||||||
|
|
||||||
|
|
5
start.sh
5
start.sh
|
@ -12,8 +12,7 @@ ME="${0##*/}"
|
||||||
TS=$(date -u +%s%N | cut -b1-13)
|
TS=$(date -u +%s%N | cut -b1-13)
|
||||||
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
|
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
|
||||||
|
|
||||||
killall 12345.sh
|
killall 12345.sh; killall nc
|
||||||
killall nc
|
|
||||||
|
|
||||||
echo '
|
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
|
[[ ! $YOU ]] && echo "Lancez 'ipfs daemon' SVP sudo systemctl start ipfs" && exit 1
|
||||||
IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID)
|
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 &
|
~/.zen/Astroport.ONE/12345.sh > ~/.zen/tmp/12345.log &
|
||||||
|
|
||||||
## CREATE AND OR CONNECT USER
|
## CREATE AND OR CONNECT USER
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<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="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/decoration.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/layout.css" type="text/css" />
|
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/layout.css" type="text/css" />
|
||||||
|
|
|
@ -5,6 +5,8 @@ Content-Type: text/html; charset=UTF-8
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<title>[Astroport] Redirecting ... Please refresh if failed</title>
|
||||||
|
|
||||||
<meta http-equiv="refresh" content="0; url='_TWLINK_'" />
|
<meta http-equiv="refresh" content="0; url='_TWLINK_'" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in New Issue