myASTROPORT isLAN? myIP addressing
This commit is contained in:
parent
2d9b301064
commit
85eb8221ee
|
@ -837,7 +837,7 @@ else
|
|||
if [[ $GCFOUND == "false" ]]; then
|
||||
echo "PAS DE COMPTE CESIUM POUR CETTE CLEF GCHANGE"
|
||||
sed "s~_TWLINK_~https://demo.cesium.app/#/app/wot/$QRCODE/~g" ${MY_PATH}/../templates/index.302 > ~/.zen/tmp/${MOATS}/index.redirect
|
||||
echo "url='"${myASTRONEF}"'" >> ~/.zen/tmp/${MOATS}/index.redirect
|
||||
echo "url='"${myASTROPORT}"'" >> ~/.zen/tmp/${MOATS}/index.redirect
|
||||
sed -i "s~Set-Cookie*~Set-Cookie: $COOKIE~" ~/.zen/tmp/${MOATS}/index.redirect
|
||||
( cat ~/.zen/tmp/${MOATS}/index.redirect | nc -l -p ${PORT} -q 1 > /dev/null 2>&1) &
|
||||
exit 0
|
||||
|
|
|
@ -421,16 +421,15 @@ 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])/")
|
||||
|
||||
myASTROPORT="http://astroport.localhost:1234"
|
||||
myASTRONEF="http://astroport.localhost:1234"
|
||||
myASTROPORT="http://${myIP}:1234"
|
||||
myAPI="http://${myIP}:5001"
|
||||
myDATA="https://data.gchange.fr"
|
||||
myGCHANGE="https://www.gchange.fr"
|
||||
myCESIUM="https://g1.data.e-is.pro"
|
||||
myG1BILLET="http://g1billet.localhost:33101"
|
||||
myG1BILLET="http://${myIP}:33101"
|
||||
myHOST="$(myHostName)"
|
||||
|
||||
myIPFS="http://ipfs.localhost:8080"
|
||||
myIPFS="http://${myIP}:8080" ## Work in LAN deported desktop
|
||||
myIPFSGW="$(myIpfsGw)"
|
||||
myTUBE="$(myTube)"
|
||||
myASTROTUBE="https://$(myAstroTube)"
|
||||
|
|
Loading…
Reference in New Issue