pseudo="/ipns/${CLYUSER}${YOMAIN}.$(myDOMAIN)"

This commit is contained in:
fred 2024-02-03 16:42:59 +01:00
parent 0c3b8346dd
commit 5223dd640f
2 changed files with 6 additions and 4 deletions

View File

@ -47,7 +47,7 @@ YUSER=$(echo ${mail} | cut -d '@' -f1) # YUSER=geg-la_debrouille
LYUSER=($(echo "$YUSER" | sed 's/[^a-zA-Z0-9]/\ /g')) # LYUSER=(geg la debrouille)
CLYUSER=$(printf '%s\n' "${LYUSER[@]}" | tac | tr '\n' '.' ) # CLYUSER=debrouille.la.geg.
YOMAIN=$(echo ${mail} | cut -d '@' -f 2) # YOMAIN=super.chez-moi.com
pseudo="${CLYUSER}_${YOMAIN}"
pseudo="/ipns/${CLYUSER}${YOMAIN}.$(myDOMAIN)"
#~ echo "PSEUDO=$pseudo"
messfile="$2" # FICHIER A AJOUTER AU CORPS MESSAGEUP
@ -55,7 +55,7 @@ messfile="$2" # FICHIER A AJOUTER AU CORPS MESSAGEUP
## add a tittle in message
title="$3"
SUBJECT="[UPlanet] ${title} ${pseudo} : $(myHostName)"
SUBJECT="[UPlanet] ${title} ${pseudo}"
MESSAGESIGN="---<br>this message is sent to you by <a href='$(myIpfsGw)/ipns/$IPFSNODEID'>$(myHostName)</a> your ♥BOX Astroport.ONE Station"

View File

@ -437,6 +437,8 @@ myIP="$(myIp)" # "127.0.0.1"
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")
myDOMAIN="copylaradio.com"
myASTROPORTW="http://$(hostname).local:1234" #astroport.localhost
myASTROPORT="http://${myIP}:1234" # BE ACCESSIBLE THROUGH LAN
myAPI="http://${myIP}:5001"
@ -458,8 +460,8 @@ myASTROTUBE="https://$(myAstroTube)"
&& myAPI="https://ipfs.$(myHostName)" \
&& myIPFS="https://ipfs.$(myDomainName)" \
&& myHOST="astroport.$(myHostName)" \
&& myG1BILLET="https://libra.copylaradio.com" \
&& myIPFSW="https://ipfs.copylaradio.com" \
&& myG1BILLET="https://libra.${myDOMAIN}" \
&& myIPFSW="https://ipfs.${myDOMAIN}" \
|| true
## zIP :: PUT YOUR Internet Box IP IN ~/.zen/♥Box ( Forward PORTS 8080 4001 5001 33101 33102 1234 12345 45780 to 45790 )