forked from axiom-team/astrXbian
ipfs gateway 8181 port to AVOID CONFLICT WITH KODI REMOTE
This commit is contained in:
parent
597354f265
commit
9b93d95cc6
|
@ -16,7 +16,7 @@ SITE_IDENTIFIER = 'astroport'
|
||||||
SITE_NAME = 'ASTROPORT _PROFIL_ (_LOGIN_) (_MDP_)'
|
SITE_NAME = 'ASTROPORT _PROFIL_ (_LOGIN_) (_MDP_)'
|
||||||
SITE_DESC = 'Partage ~/astroport/films (animes, series) avec ses amis https://cesium.app via IPFS'
|
SITE_DESC = 'Partage ~/astroport/films (animes, series) avec ses amis https://cesium.app via IPFS'
|
||||||
|
|
||||||
URL_MAIN = 'http://localhost:8080/ipns/_IPNSKEY_/xbian/'
|
URL_MAIN = 'http://localhost:8181/ipns/_IPNSKEY_/xbian/'
|
||||||
|
|
||||||
KEY_PASTE_ID = 'PASTE_ID'
|
KEY_PASTE_ID = 'PASTE_ID'
|
||||||
SETTING_PASTE_ID = 'pastebin_id_'
|
SETTING_PASTE_ID = 'pastebin_id_'
|
||||||
|
|
|
@ -125,8 +125,10 @@ ipfs bootstrap add /ip6/fe80::208:a2ff:fe0c:20d8/tcp/4001/p2p/12D3KooWBYme2BsNUr
|
||||||
###########################################
|
###########################################
|
||||||
# TODO: ADD some other bootstrap NODES
|
# TODO: ADD some other bootstrap NODES
|
||||||
###########################################
|
###########################################
|
||||||
|
# AVOID CONFLICT WITH KODI REMOTE
|
||||||
|
ipfs config Addresses.Gateway "/ip4/127.0.0.1/tcp/8181"
|
||||||
|
|
||||||
sudo systemctl start ipfs || err "Start IPFS daemon"
|
sudo service ipfs start || err "Start IPFS daemon"
|
||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ rm -Rf ~/.zen/ipfs
|
||||||
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB
|
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB
|
||||||
########################################################################
|
########################################################################
|
||||||
# Give $XZUID to your (gchange friends) to add in Vstream Astroport and access your sharings
|
# Give $XZUID to your (gchange friends) to add in Vstream Astroport and access your sharings
|
||||||
# IPNS link to "pastebin list" http://localhost:8080/ipns/$IPNSKEY/xbian/$XZUID
|
# IPNS link to "pastebin list" http://localhost:8181/ipns/$IPNSKEY/xbian/$XZUID
|
||||||
########################################################################
|
########################################################################
|
||||||
XZUID=$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)-$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)$(hostname -I | cut -d ' ' -f 1 | cut -d "." -f 4 )
|
XZUID=$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)-$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)$(hostname -I | cut -d ' ' -f 1 | cut -d "." -f 4 )
|
||||||
echo "CREATE ~/.zen/ipfs/xbian/$XZUID"
|
echo "CREATE ~/.zen/ipfs/xbian/$XZUID"
|
||||||
|
|
|
@ -172,9 +172,9 @@ fi
|
||||||
DUFACTOR=$(bc <<< "scale=2; $(cat /home/$YOU/.zen/_DU) / 100")
|
DUFACTOR=$(bc <<< "scale=2; $(cat /home/$YOU/.zen/_DU) / 100")
|
||||||
AMOUNTLOVE=$(bc -l <<< "scale=0; $myJune * 100 / $DUFACTOR")
|
AMOUNTLOVE=$(bc -l <<< "scale=0; $myJune * 100 / $DUFACTOR")
|
||||||
# OLD ssb-server publish
|
# OLD ssb-server publish
|
||||||
# sbot publish --type about --about $WHOAMI --description "[Astroport Node](https://astroport.com) [$IPFSNODEID](http://localhost:8080/ipns/$IPFSNODEID) - Wallet $G1PUB - $diskperf" --name "$title" --image "$id"
|
# sbot publish --type about --about $WHOAMI --description "[Astroport Node](https://astroport.com) [$IPFSNODEID](http://localhost:8181/ipns/$IPFSNODEID) - Wallet $G1PUB - $diskperf" --name "$title" --image "$id"
|
||||||
# NEW sbotc publish to oasis
|
# NEW sbotc publish to oasis
|
||||||
sbotc publish "{\"type\":\"about\",\"about\":\"$WHOAMI\",\"description\":\"![QRCode]($qrid)\\n[Station Astroport](https://astroport.com)\\n - [Mon Marché](https://gchange.fr/#/app/wot/$G1PUB) \\n - [Mon portefeuille ($AMOUNTLOVE :heart:)](https://cesium.app/) \\n Station ID : [$IPFSNODEID](http://localhost:8080/ipns/$IPFSNODEID) \\n Disque: $sizeAvail = $diskperf \\n - [Portail](http://$nodename:10010/) \\n\",\"name\":\"$title\",\"image\":\"$id\"}"
|
sbotc publish "{\"type\":\"about\",\"about\":\"$WHOAMI\",\"description\":\"![QRCode]($qrid)\\n[Station Astroport](https://astroport.com)\\n - [Mon Marché](https://gchange.fr/#/app/wot/$G1PUB) \\n - [Mon portefeuille ($AMOUNTLOVE :heart:)](https://cesium.app/) \\n Station ID : [$IPFSNODEID](http://localhost:8181/ipns/$IPFSNODEID) \\n Disque: $sizeAvail = $diskperf \\n - [Portail](http://$nodename:10010/) \\n\",\"name\":\"$title\",\"image\":\"$id\"}"
|
||||||
|
|
||||||
|
|
||||||
# SSB PUBLISH G1 wallet silkaj balance
|
# SSB PUBLISH G1 wallet silkaj balance
|
||||||
|
|
|
@ -98,7 +98,7 @@ $author
|
||||||
~/.zen/ipfs/.${ipfsnodeid}/CONTACT/${g1author}/ipfs_swarm.key.crypt
|
~/.zen/ipfs/.${ipfsnodeid}/CONTACT/${g1author}/ipfs_swarm.key.crypt
|
||||||
|
|
||||||
PUBLISH IPFS
|
PUBLISH IPFS
|
||||||
http://localhost:8080/ipns/
|
http://localhost:8181/ipns/
|
||||||
"
|
"
|
||||||
ipfs name publish --quieter /ipfs/$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
ipfs name publish --quieter /ipfs/$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ do
|
||||||
filename=$(basename -- "$file")
|
filename=$(basename -- "$file")
|
||||||
extension="${filename##*.}"
|
extension="${filename##*.}"
|
||||||
filena="${filename%.*}"
|
filena="${filename%.*}"
|
||||||
echo "$filena;http://localhost:8080/ipfs/$AFSHARE/$filename" >> ~/.zen/ipfs/xbian/F${XZUID}
|
echo "$filena;http://localhost:8181/ipfs/$AFSHARE/$filename" >> ~/.zen/ipfs/xbian/F${XZUID}
|
||||||
done
|
done
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
|
|
Loading…
Reference in New Issue