fix template
This commit is contained in:
parent
96cb14ec20
commit
5352e972b9
4
12345.sh
4
12345.sh
|
@ -100,7 +100,9 @@ while true; do
|
|||
# REPLACE myHOST in http response template (fixing next API meeting point)
|
||||
echo "$HTTPCORS" > ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||
template_register >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||
sed -i "s~:http://127.0.0.1:12345~http://${myHOST}:${PORT}~g" ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||
sed -i -e "s~\"${myIPFS}/\"~\"$(myIpfs)\"~g" \
|
||||
-e "s~http://${myHOST}:12345~http://${myHOST}:${PORT}~g" \
|
||||
~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||
|
||||
############################################################################
|
||||
## SERVE LANDING REDIRECT PAGE ~/.zen/tmp/coucou/${MOATS}.myHOST.http on PORT 1234 (LOOP BLOCKING POINT)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>[Astroport] :: Station _HOSTNAME_ :: _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/decoration.css" type="text/css" />
|
||||
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/layout.css" type="text/css" />
|
||||
<style>
|
||||
|
||||
|
@ -75,7 +75,9 @@ header {
|
|||
<div class="row justify-center">
|
||||
<h1 class="video-title">
|
||||
<center><a href="https://twitch.com/zicmama" target="twitch">COCODING TWITCH TW</a><br></center><br>
|
||||
<a href="https://git.p2p.legal/qo-op/Astroport.ONE" target="code">Astroport.ONE - ♥BOX Edition - Olympe.Network</a><br>
|
||||
<a href="https://astroport.com">Astroport.ONE</a>
|
||||
<a href="https://git.p2p.legal/qo-op/Astroport.ONE" target="code">- ♥BOX Edition - </a>
|
||||
<a href="https://olympe.network">Olympe.Network</a><br>
|
||||
<a target="code" href="http://opencollective.com/monnaie-libre/projects/bunker-box">Recopiez les vidéos que vous aimez dans les capsules multimédia de votre TW!
|
||||
<br>Une fois votre G1Visa obtenu, direction <a target="gchange" href="https://gchange.fr">https://gchange.fr</a> !</a>
|
||||
</h1>
|
||||
|
|
|
@ -5,8 +5,11 @@ template_register() {
|
|||
&& SED_SCRIPT='sed -e "s~<input type='"'hidden'"' name='"'salt'"' value='"'0'"'>~<input name='"'salt'"' value='"''"'>~g"
|
||||
-e "s~<input type='"'hidden'"' name='"'pepper'"' value='"'0'"'>~<input name='"'pepper'"' value='"''"'>~g"' \
|
||||
|| SED_SCRIPT='tee'
|
||||
$RUN sed -e "s~http://127.0.0.1:1234~${myASTROPORT}~g" \
|
||||
$RUN sed \
|
||||
-e "s~\"http://127.0.0.1:1234/\"~\"${myIPFS}/\"~g" \
|
||||
-e "s~\"http://127.0.0.1:1234\"~\"${myASTROPORT}\"~g" \
|
||||
-e "s~http://127.0.0.1:8080~${myIPFS}~g" \
|
||||
-e "s~http://127.0.0.1:12345~http://${myHOST}:12345~g" \
|
||||
-e "s~_IPFSNODEID_~${IPFSNODEID}~g" \
|
||||
-e "s~_HOSTNAME_~$(hostname)~g" \
|
||||
-e "s~.000.~.$(printf '%03d' $(seq 0 17 |shuf -n 1)).~g" \
|
||||
|
|
Loading…
Reference in New Issue