From 3369c931efc0c0265fd2a6db976346b2261cf5fa Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 28 Oct 2022 15:50:06 +0200 Subject: [PATCH] HOSTNAME --- 12345.sh | 1 + templates/index.http | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/12345.sh b/12345.sh index 52f96f6c..eacb6c49 100755 --- a/12345.sh +++ b/12345.sh @@ -51,6 +51,7 @@ while true; do sed "s~127.0.0.1:12345~$myIP:$PORT~g" $HOME/.zen/Astroport.ONE/templates/index.http > ~/.zen/tmp/123/${MOATS}.myIP.http sed -i "s~127.0.0.1~$myIP~g" ~/.zen/tmp/123/${MOATS}.myIP.http sed -i "s~_IPFSNODEID_~${IPFSNODEID}~g" ~/.zen/tmp/123/${MOATS}.myIP.http ## NODE PUBLISH HOSTED WHAT'S JSON + sed -i "s~_HOSTNAME_~${hostname}~g" ~/.zen/tmp/123/${MOATS}.myIP.http ## HOSTNAME ############################################################################ ## WAITING TO SERVE 1ST LANDING REDIRECT PAGE diff --git a/templates/index.http b/templates/index.http index 659f62cd..12f32ac3 100644 --- a/templates/index.http +++ b/templates/index.http @@ -12,7 +12,7 @@ Content-Type: text/html; charset=UTF-8 height:42%; } - [Astroport] IPFS - Basic Input Output Social System - BIOSS - Astronaut TW's - + [Astroport] IPFS - Basic Input Output Social System - BIOSS - _HOSTNAME_ -