forked from STI/Astroport.ONE
set right GW & API
This commit is contained in:
parent
7010b0c836
commit
32fc816624
|
@ -1 +1 @@
|
||||||
[{"title":"$:/ipfs/saver/api/http/local/5001","tags":"$:/ipfs/core $:/ipfs/saver/api","text":"_NID_"}]
|
[{"title":"$:/ipfs/saver/astroport/api","tags":"$:/ipfs/core $:/ipfs/saver/api","text":"_NID_"}]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
[{"title":"$:/ipfs/saver/gateway/local/myip","tags":"$:/ipfs/core $:/ipfs/saver/gateway","text":"_NID_"}]
|
[{"title":"$:/ipfs/saver/astroport/gw","tags":"$:/ipfs/core $:/ipfs/saver/gateway","text":"_NID_"}]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
[{"title":"$:/ipfs/saver/api","tags":"$:/ipfs/core","text":"$:/ipfs/saver/api/http/local/5001"}]
|
[{"title":"$:/ipfs/saver/api","tags":"$:/ipfs/core","text":"$:/ipfs/saver/astroport/api"}]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
[{"title":"$:/ipfs/saver/gateway","tags":"$:/ipfs/core","text":"$:/ipfs/saver/gateway/local/myip"}]
|
[{"title":"$:/ipfs/saver/gateway","tags":"$:/ipfs/core","text":"$:/ipfs/saver/astroport/gw"}]
|
||||||
|
|
|
@ -175,10 +175,6 @@ WID="https://ipfs.$CLYUSER$YOMAIN.$(myHostName)/api"
|
||||||
|
|
||||||
####
|
####
|
||||||
|
|
||||||
### CREATE $NID ADDRESS FOR API & ROUND ROBIN FOR GW
|
|
||||||
cat ~/.zen/Astroport.ONE/templates/data/local.api.json | sed "s~_NID_~${WID}~g" > ~/.zen/tmp/${MOATS}/local.api.json
|
|
||||||
cat ~/.zen/Astroport.ONE/templates/data/local.gw.json | sed "s~_NID_~${NID}~g" > ~/.zen/tmp/${MOATS}/local.gw.json
|
|
||||||
|
|
||||||
mv ~/.zen/tmp/${MOATS}/secret.dunikey ~/.zen/game/players/$PLAYER/
|
mv ~/.zen/tmp/${MOATS}/secret.dunikey ~/.zen/game/players/$PLAYER/
|
||||||
|
|
||||||
# Create Player "IPNS Key" (key import)
|
# Create Player "IPNS Key" (key import)
|
||||||
|
@ -266,6 +262,10 @@ WID="https://ipfs.$CLYUSER$YOMAIN.$(myHostName)/api"
|
||||||
rm -f ~/.zen/tmp/${MOATS}/crypto.2
|
rm -f ~/.zen/tmp/${MOATS}/crypto.2
|
||||||
###########
|
###########
|
||||||
|
|
||||||
|
### CREATE $NID ADDRESS FOR API & ROUND ROBIN FOR GW
|
||||||
|
cat ~/.zen/Astroport.ONE/templates/data/local.api.json | sed "s~_NID_~${WID}~g" > ~/.zen/tmp/${MOATS}/local.api.json
|
||||||
|
cat ~/.zen/Astroport.ONE/templates/data/local.gw.json | sed "s~_NID_~${NID}~g" > ~/.zen/tmp/${MOATS}/local.gw.json
|
||||||
|
|
||||||
# Create"$PLAYER_feed" Key
|
# Create"$PLAYER_feed" Key
|
||||||
FEEDNS=$(ipfs key gen "${PLAYER}_feed")
|
FEEDNS=$(ipfs key gen "${PLAYER}_feed")
|
||||||
|
|
||||||
|
@ -280,9 +280,6 @@ WID="https://ipfs.$CLYUSER$YOMAIN.$(myHostName)/api"
|
||||||
# cat ~/.zen/tmp/${MOATS}/local.api.json | jq -r
|
# cat ~/.zen/tmp/${MOATS}/local.api.json | jq -r
|
||||||
|
|
||||||
## CHANGE SELECTED GW & API
|
## CHANGE SELECTED GW & API
|
||||||
## ~/.zen/Astroport.ONE/templates/tw/$ _ipfs_saver_api.json
|
|
||||||
## ~/.zen/Astroport.ONE/templates/tw/$ _ipfs_saver_gateway.json
|
|
||||||
|
|
||||||
|
|
||||||
## ADD SYSTEM TW
|
## ADD SYSTEM TW
|
||||||
tiddlywiki --load ~/.zen/game/players/$PLAYER/ipfs/moa/index.html \
|
tiddlywiki --load ~/.zen/game/players/$PLAYER/ipfs/moa/index.html \
|
||||||
|
|
Loading…
Reference in New Issue