This commit is contained in:
fred 2022-10-25 03:18:37 +02:00
parent d8b4c19195
commit f816c5a1c7
2 changed files with 6 additions and 4 deletions

View File

@ -147,6 +147,8 @@ cat ~/.zen/tmp/123/${MOATS}.messaging.json >> ~/.zen/tmp/123/${MOATS}.index.redi
[[ "$TYPE" == "g1pub" ]] && sed "s~_TWLINK_~https://www.gchange.fr/#/app/user/$G1PUB/~g" ~/.zen/Astroport.ONE/templates/index.redirect > ~/.zen/tmp/123/${MOATS}.index.redirect
[[ ! -f ~/.zen/tmp/123/${MOATS}.index.redirect ]] && sed "s~_TWLINK_~http://$myIP:8080/ipns/$GNS~g" ~/.zen/Astroport.ONE/templates/index.redirect > ~/.zen/tmp/123/${MOATS}.index.redirect
## TODO PATCH _SECRET_ myIP STUFF
## RESPONDING
cat ~/.zen/tmp/123/${MOATS}.index.redirect | nc -l -p ${PORT} -q 1 &
echo "HTTP 1.1 PROTOCOL DOCUMENT READY ~/.zen/tmp/123/${MOATS}.index.redirect"

View File

@ -8,16 +8,16 @@ Content-Type: text/html; charset=UTF-8
<meta http-equiv="refresh" content="4; url='http://127.0.0.1:12345'" />
<style>
#wait {
width:100%;
height:100%;
width:60%;
height:60%;
}
</style>
</head>
<body>
<center>
<h1>ASTROPORT Ŋ1</h1>
<img src='http://127.0.0.1:8080/ipfs/QmS4xmYNpto1ce65VBPJsDjiaoupmxTTE7o5RD2zrnJcVb/QRCode.gif' id='await'/>
<h2>Recherche TW Astronaute</h2>
<b>Astronaute... préparation de votre port d'arrimage</b><br>
<img src='http://127.0.0.1:8080/ipfs/QmS4xmYNpto1ce65VBPJsDjiaoupmxTTE7o5RD2zrnJcVb/QRCode.gif' id='wait'/>
</center>
</body>
</html>