This is raocket

This commit is contained in:
fred 2022-10-21 21:09:15 +02:00
parent 236cd0b8cb
commit c57430937b
2 changed files with 9 additions and 4 deletions

View File

@ -39,6 +39,7 @@ while true; do
# REPLACE myIP in http response template
sed "s~127.0.0.1:12345~$myIP:$PORT~g" $HOME/.zen/Astroport.ONE/templates/index.http > ~/.zen/tmp/myIP.http.${MOATS}
sed -i "s~127.0.0.1~$myIP~g" ~/.zen/tmp/myIP.http.${MOATS}
## LAUNCHING
URL=$(cat $HOME/.zen/tmp/myIP.http.${MOATS} | nc -l -p 1234 -q 1 | grep '^GET' | cut -d ' ' -f2 | cut -d '?' -f2)

View File

@ -6,12 +6,16 @@ Content-Type: text/html; charset=UTF-8
<html>
<head>
<meta http-equiv="refresh" content="3; url='http://127.0.0.1:12345'" />
<style>
#wait {
width:100%;
height:100%;
}
</style>
</head>
<body>
<h1>ASTROPORT</h1>
<h2>Astronaute nous créons votre TW .... </h2>
<form action = "http://127.0.0.1:12345" method = "GET">
<input type='submit' value='PATIENTEZ SVP'>
</form>
<h2>Astronaute Contact</h2>
<img src='http://127.0.0.1:8080/ipfs/QmS4xmYNpto1ce65VBPJsDjiaoupmxTTE7o5RD2zrnJcVb/QRCode.gif' id='wait'/>
</body>
</html>