install ipfs with full API.HTTPHeaders.Access-Control
This commit is contained in:
parent
e336648c31
commit
c499d93c29
|
@ -25,12 +25,11 @@ err() {
|
||||||
if [[ $(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) ]]; then
|
if [[ $(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) ]]; then
|
||||||
ipfs id && echo "ipfs swarm peers: " && ipfs swarm peers
|
ipfs id && echo "ipfs swarm peers: " && ipfs swarm peers
|
||||||
echo "ipfs bootstrap list: " && ipfs bootstrap list
|
echo "ipfs bootstrap list: " && ipfs bootstrap list
|
||||||
echo "ipfs daemon already running...! Must STOP ipfs AND remove ~/.ipfs to install again !!"
|
echo "ipfs daemon already running...!"
|
||||||
echo "Please RUN : sudo service ipfs stop"
|
exit 0
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -d ~/.ipfs ]] && echo "IPFS install exist! Please remove or backup before executing this script" && exit 1
|
[[ -d ~/.ipfs ]] && echo "IPFS install exist! Please remove or backup before executing this script" && exit 0
|
||||||
|
|
||||||
echo -e "Astroport IPFS Layer installation..."
|
echo -e "Astroport IPFS Layer installation..."
|
||||||
|
|
||||||
|
@ -128,7 +127,8 @@ ipfs config --json Swarm.ConnMgr.LowWater 0
|
||||||
ipfs config --json Swarm.ConnMgr.HighWater 0
|
ipfs config --json Swarm.ConnMgr.HighWater 0
|
||||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
|
||||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
|
||||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'######### CLEAN DEFAULT BOOTSTRAP TO STAY INVISIBLE ###########
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
|
||||||
|
######### CLEAN DEFAULT BOOTSTRAP TO STAY INVISIBLE ###########
|
||||||
ipfs bootstrap rm --all
|
ipfs bootstrap rm --all
|
||||||
###########################################
|
###########################################
|
||||||
# BOOTSTRAP NODES ARE ADDED LATER
|
# BOOTSTRAP NODES ARE ADDED LATER
|
||||||
|
|
Loading…
Reference in New Issue