diff --git a/docs/install.md b/docs/install.md index 089d151..c3ab6fa 100644 --- a/docs/install.md +++ b/docs/install.md @@ -56,6 +56,22 @@ docker run --rm -p 5100:80 --name otterscan -d --env ERIGON_URL=" As an example, for Prysm you need to enable CORS and possibly bind the address to the correct network interface with `--grpc-gateway-host="0.0.0.0" --grpc-gateway-corsdomain='*'` and by default it binds it to the port 3500. + +When starting the Otterscan process via Docker, you need to add an extra env variable called `BEACON_API_URL` pointing to your beacon node API URL. + +Prysm example: + +``` +docker run --rm -p 5100:80 --name otterscan -d --env BEACON_API_URL="" otterscan/otterscan: +``` + ## Validating the installation (all methods) You can make sure it is working correctly if the homepage is able to show the latest block/timestamp your Erigon node is at just bellow the search button. diff --git a/run-nginx.sh b/run-nginx.sh index 604c8b4..b95bdad 100755 --- a/run-nginx.sh +++ b/run-nginx.sh @@ -1,4 +1,4 @@ #!/bin/sh -PARAMS="{\"erigonURL\": $(echo $ERIGON_URL | jq -aR .), \"assetsURLPrefix\": \"\"}" +PARAMS="{\"erigonURL\": $(echo $ERIGON_URL | jq -aR .), \"beaconAPI\": $(echo $BEACON_API_URL | jq -aR .), \"assetsURLPrefix\": \"\"}" echo $PARAMS > /usr/share/nginx/html/config.json nginx -g "daemon off;"