tell blockexplorer to run on port 8080 (#3237)

* tell blockexplorer to run on port 8080

* forward port 80 to 5000 for a blockexplorer node
This commit is contained in:
Rob Walker 2019-03-12 13:39:09 -07:00 committed by GitHub
parent 1ee43a7633
commit a799f8f4b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -480,6 +480,7 @@ $(
install-nodejs.sh \
install-redis.sh \
install-rsync.sh \
install-socat.sh \
network-config.sh \
remove-docker-interface.sh \

View File

@ -116,6 +116,7 @@ local|tar)
if [[ $nodeType = blockstreamer ]]; then
npm install @solana/blockexplorer@1
npx solana-blockexplorer > blockexplorer.log 2>&1 &
sudo socat TCP-LISTEN:80,reuseaddr,fork,su=nobody TCP:localhost:5000
fi
./multinode-demo/fullnode.sh "${args[@]}" "$entrypointIp":~/solana "$entrypointIp:8001" > fullnode.log 2>&1 &
;;

10
net/scripts/install-socat.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
#
# socat setup for
#
set -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
apt-get --assume-yes install socat