forked from STI/Astroport.ONE
nice program
This commit is contained in:
parent
b4e05972a3
commit
5eb556f521
14
12345.sh
14
12345.sh
|
@ -205,15 +205,15 @@ cat ~/.zen/tmp/123/${MOATS}.messaging.json >> ~/.zen/tmp/123/${MOATS}.index.redi
|
|||
TWIP=$myIP
|
||||
# OFFICIAL Gateway ( increase waiting time ) - MORE SECURE
|
||||
if [[ $TYPE == "official" ]]; then
|
||||
echo "OFFICIAL latest online TW..."
|
||||
echo "$LIBRA/ipns/$GNS"
|
||||
echo "http://$myIP:8080/ipns/$GNS ($YOU)"
|
||||
[[ $YOU ]] && ipfs --timeout 12s cat /ipns/$GNS > ~/.zen/tmp/123/${MOATS}.astroindex.html \
|
||||
|| curl -m 12 -so ~/.zen/tmp/123/${MOATS}.astroindex.html "$LIBRA/ipns/$GNS"
|
||||
|
||||
echo "OFFICIAL latest online TW... $LIBRA ($YOU)"
|
||||
|
||||
[[ $YOU ]] && echo "http://$myIP:8080/ipns/$GNS ($YOU)" && ipfs --timeout 12s cat /ipns/$GNS > ~/.zen/tmp/123/${MOATS}.astroindex.html
|
||||
[[ ! -s ~/.zen/tmp/123/${MOATS}.astroindex.html ]] && echo "$LIBRA/ipns/$GNS" && curl -m 12 -so ~/.zen/tmp/123/${MOATS}.astroindex.html "$LIBRA/ipns/$GNS"
|
||||
|
||||
# DEBUG
|
||||
echo "tiddlywiki --load ~/.zen/tmp/123/${MOATS}.astroindex.html --output ~/.zen/tmp --render '.' 'miz.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'"
|
||||
echo "cat ~/.zen/tmp/miz.json | jq -r .[].secret"
|
||||
# echo "tiddlywiki --load ~/.zen/tmp/123/${MOATS}.astroindex.html --output ~/.zen/tmp --render '.' 'miz.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'"
|
||||
# echo "cat ~/.zen/tmp/miz.json | jq -r .[].secret"
|
||||
|
||||
if [[ -s ~/.zen/tmp/123/${MOATS}.astroindex.html ]]; then
|
||||
tiddlywiki --load ~/.zen/tmp/123/${MOATS}.astroindex.html --output ~/.zen/tmp --render '.' 'miz.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'
|
||||
|
|
|
@ -5,12 +5,10 @@ Content-Type: text/html; charset=UTF-8
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>[Astroport] Redirecting ... </title>
|
||||
|
||||
<title>[Astroport] Redirecting to _TWLINK_ ... </title>
|
||||
<meta http-equiv="refresh" content="0; url='_TWLINK_'" />
|
||||
</head>
|
||||
<body>
|
||||
<p>Please follow <a href="_TWLINK_">this link</a>.</p>
|
||||
<h1>If failing. Clic above link or try to refresh page... </h1>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue