This commit is contained in:
qo-op 2021-02-20 01:38:13 +01:00
parent 4b9bce3d47
commit acca2b2fb2
3 changed files with 18 additions and 4 deletions

View File

@ -170,6 +170,20 @@ Les publications IPNS de tous les amis "ipfs swarm peers" alimentent ~/.zen/ipfs
L'essaim se restructure avec ```cron_MINUTE.sh``` pour se synchroniser et diffuser les données de façon intelligente.
# Magic commands
```
# Obtenir la liste de tous ses amis (gchange+)
cat ~/.zen/ipfs_swarm/.12*/G1SSB/_g1.gchange_title
# Obtenir les PIN IPFS de votre essaim
for astrofile in $(ls ~/.zen/ipfs_swarm/.*/PIN/*/* |sort | uniq); do echo $astrofile; done
```
# ANNEXES
BROCHURE https://www.copylaradio.com/en_US/blog/blog-1/post/astrxbian-20

View File

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
# Author: Fred (support@qo-op.com)
# Version: 2020.12.25
# Author:
# Version: 0.1
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
########################################################################
MY_PATH="`dirname \"$0\"`" # relative

View File

@ -71,11 +71,11 @@ if [[ $KEY ]]; then
touch ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/.zen
mv ~/astroport/${CAT}/${TMDB}/ajouter_video.txt ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/
# echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://localhost:8181/ipns/$KEY/TMDB_$TMDB/${G1PUB}/\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/ipns.html
# $MY_PATH/jaklis/lib/natools.py encrypt -k $G1PUB -i ~/.ipfs/keystore/$KEYFILE -o ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/.ipns.key.encrypt.natools
# TRY NATOOLS FOR SECURE SHARING # $MY_PATH/jaklis/lib/natools.py encrypt -k $G1PUB -i ~/.ipfs/keystore/$KEYFILE -o ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/.ipns.key.encrypt.natools
fi
# IPNS index.html Redirect to ipfs streaming link (could be contract or anything !!)
echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://localhost:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME\">" > ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/index.html
NEWIPFS=$(ipfs add -rHq ~/.zen/KEY/TMDB_$TMDB | tail -n 1 )
NEWIPFS=$(ipfs add -rHq ~/.zen/KEY/TMDB_$TMDB/ | tail -n 1 )
ipfs name publish --key="TMDB_$TMDB" $NEWIPFS
########################################################################