From b8ce357d28767df865c3ae3ace91da20a30b0110 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 27 Dec 2022 00:37:17 +0100 Subject: [PATCH] make player MAIL=$PLAYER PLAYER_API_ONLINE=true \ --- tools/VISA.new.sh | 7 +++++++ tools/g1_to_ipfs.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/VISA.new.sh b/tools/VISA.new.sh index 1e780e6c..dcac120c 100755 --- a/tools/VISA.new.sh +++ b/tools/VISA.new.sh @@ -178,6 +178,13 @@ echo "NEXT STYLE GW : https://ipfs.$CLYUSER$YOMAIN.$HOSTNAME" NID="${myIPFSGW}" && WID="$NID/api" [[ $isLAN ]] && NID="http://ipfs.localhost:8080" && WID="http://ipfs.localhost:5001" +#### +[[ $USER="zen" || $isLAN == "" ]] \ +&& make player MAIL=$PLAYER PLAYER_API_ONLINE=true \ +&& NID="https://ipfs.$HOSTNAME" && WID="https://ipfs.$CLYUSER$YOMAIN.$HOSTNAME/api" + +#### + ### CREATE $NID ADDRESS FOR API & ROUND ROBIN FOR GW cat ~/.zen/Astroport.ONE/templates/data/local.api.json | sed -i "s~_NID_~${WID}~g" > ~/.zen/tmp/${MOATS}/local.api.json cat ~/.zen/Astroport.ONE/templates/data/local.gw.json | sed -i "s~_NID_~${NID}~g" > ~/.zen/tmp/${MOATS}/local.gw.json diff --git a/tools/g1_to_ipfs.py b/tools/g1_to_ipfs.py index 86db1a3c..fb0eb2f7 100755 --- a/tools/g1_to_ipfs.py +++ b/tools/g1_to_ipfs.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -import sys, re, base58, base64, crypto_pb2 +import sys, re, base58, base64 import cryptography.hazmat.primitives.asymmetric.ed25519 as ed25519 from cryptography.hazmat.primitives import serialization