forked from axiom-team/astrXbian
${MEDIAKEY}/index.html ET ${MEDIAKEY}/${G1PUB}/index.html
This commit is contained in:
parent
585f4041e8
commit
3b6ee36729
@ -286,40 +286,10 @@ rm /tmp/.ipfsid
|
|||||||
########################################################################
|
########################################################################
|
||||||
## IPNS access to index.html
|
## IPNS access to index.html
|
||||||
## Level 1 (not crypted) -> Redirect to ipfs streaming link
|
## Level 1 (not crypted) -> Redirect to ipfs streaming link
|
||||||
## Modified by "./zen/ipns_TAG_refresh.sh" (add crypto/contracts there)
|
|
||||||
echo "<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>$TITLE in Astroport</title>
|
|
||||||
<meta charset=\"UTF-8\">
|
|
||||||
<meta http-equiv=\"Refresh\" content=\"10;URL=https://tube.copylaradio.com/ipns/$IPNSLINK/${G1PUB}/\">
|
|
||||||
<link rel='stylesheet' href='/crowdbunker.css' type='text/css' />
|
|
||||||
<link rel='icon' type='image/png' href='/astrocrowdbunker.png' />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<h5>
|
|
||||||
<a href=\"https://tube.copylaradio.com/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME\"><span>Lancez la lecture depuis Astroport/KODI de $TITLE </span></a>!
|
|
||||||
</h5>
|
|
||||||
<h6>
|
|
||||||
<a href='https://astroport.com'><span>ASTROPORT/KODI</span> × <span> DEMO</span></a>
|
|
||||||
</h6>
|
|
||||||
</header>
|
|
||||||
<main>
|
|
||||||
<article><h2>$TITLE</h2>
|
|
||||||
<br>Lancement du streaming video dans 10 secondes ...<br>
|
|
||||||
<h1 class='video-title'>Vous essayez <a href='https://copylaradio.com'>astrXbian</a> BETA Live TEstNET Astroport</h1>
|
|
||||||
</article>
|
|
||||||
</main>
|
|
||||||
<center><br>Service Video Club / Datacenter P2P Libre et Légal.<br>
|
|
||||||
<br>Les dons au portefeuille du Media (${mediakey}) rapportent à son Auteur, et payent son hébergement.
|
|
||||||
<br>
|
|
||||||
<br><a target='tube' href=\"https://www.gchange.fr/#/app/user/${G1PUB}/\"><img width=222 src=\"https://tube.copylaradio.com/ipns/$IPNSLINK/QR.png\"></a></center>
|
|
||||||
</body>
|
|
||||||
</html>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/index.html
|
|
||||||
# echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://127.0.0.1:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/index.html
|
|
||||||
|
|
||||||
IPNSLINK=$(ipfs key list -l | grep ${MEDIAKEY} | cut -d ' ' -f 1)
|
IPNSLINK=$(ipfs key list -l | grep ${MEDIAKEY} | cut -d ' ' -f 1)
|
||||||
|
## FIRST REDIRECT PAGE ${MEDIAKEY}/index.html
|
||||||
|
# https://tube.copylaradio.com/ipns/$IPNSLINK
|
||||||
echo "<!DOCTYPE html>
|
echo "<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
@ -348,7 +318,42 @@ echo "<!DOCTYPE html>
|
|||||||
</body>
|
</body>
|
||||||
</html>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/index.html
|
</html>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/index.html
|
||||||
|
|
||||||
|
## SECOND REDIRECT PAGE ${MEDIAKEY}/${G1PUB}/index.html
|
||||||
|
# https://tube.copylaradio.com/ipns/$IPNSLINK/${G1PUB}/
|
||||||
|
echo "<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>$TITLE in Astroport</title>
|
||||||
|
<meta charset=\"UTF-8\">
|
||||||
|
<meta http-equiv=\"Refresh\" content=\"10;URL=https://tube.copylaradio.com/ipns/$IPNSLINK/${G1PUB}/\">
|
||||||
|
<link rel='stylesheet' href='/crowdbunker.css' type='text/css' />
|
||||||
|
<link rel='icon' type='image/png' href='/astrocrowdbunker.png' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<h5>
|
||||||
|
<a href=\"http://127.0.0.1:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME\"><span>Lien direct depuis sa Station Astroport/KODI</span></a>!
|
||||||
|
</h5>
|
||||||
|
<h6>
|
||||||
|
<a href='https://astroport.com'><span>ASTROPORT/KODI</span> × <span> DEMO</span></a>
|
||||||
|
</h6>
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
<article><h2>$TITLE</h2>
|
||||||
|
<br>Lancement du streaming video dans 10 secondes ...<br>
|
||||||
|
<h1 class='video-title'>Vous essayez <a href='https://copylaradio.com'>astrXbian</a> BETA Live TEstNET Astroport</h1>
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
<center><br>Service Video Club / Datacenter P2P Libre et Légal.<br>
|
||||||
|
<br>Les dons au portefeuille du Media (${mediakey}) rapportent à son Auteur, et payent son hébergement.
|
||||||
|
<br>
|
||||||
|
<br><a target='tube' href=\"https://www.gchange.fr/#/app/user/${G1PUB}/\"><img width=222 src=\"https://tube.copylaradio.com/ipns/$IPNSLINK/QR.png\"></a></center>
|
||||||
|
</body>
|
||||||
|
</html>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/index.html
|
||||||
|
# echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://127.0.0.1:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/index.html
|
||||||
|
########################################################################
|
||||||
|
## MODIFY INTO "./zen/ipns_TAG_refresh.sh" (add crypto/contracts there)
|
||||||
|
########################################################################
|
||||||
|
|
||||||
## COPY LOCALHOST IPFS URL TO CLIPBOARD
|
## COPY LOCALHOST IPFS URL TO CLIPBOARD
|
||||||
[[ $(which xclip) ]] && echo "http://127.0.0.1:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME" | xclip -selection c
|
[[ $(which xclip) ]] && echo "http://127.0.0.1:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME" | xclip -selection c
|
||||||
|
Loading…
Reference in New Issue
Block a user