Merge pull request #1 from vulcanize/srw-env-pr

add ETHERSCAN_API_URL env
This commit is contained in:
Ramil Amerzyanov 2021-04-11 22:09:02 +03:00 committed by GitHub
commit 5287fe647e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
SERVER_PORT=3000
SERVER_HOST=127.0.0.1
ETHERSCAN_API_URL="https://api.etherscan.io"
ETHERSCAN_API_KEY=
# DB Statediff

View File

@ -25,6 +25,7 @@ And then open in browser `http://172.17.0.2:3000/metrics`
```
docker run \
-e SERVER_HOST=0.0.0.0 \
-e ETHERSCAN_API_KEY="https://api.etherscan.io" \
-e ETHERSCAN_API_KEY=*** \
-e STATEDIFF_PG_HOST=*** \
-d vulcanize/eth-state-metrics

View File

@ -2,7 +2,7 @@ const axios = require('axios');
const AppError = require('./error');
const etherscanClient = axios.create({
baseURL: 'https://api.etherscan.io',
baseURL: process.env.ETHERSCAN_API_URL,
});