Merge pull request #168 from oceanprotocol/feature/faucet-timespan

allow some faucet config via env variables
This commit is contained in:
Javier Cortejoso 2019-07-18 17:57:56 +02:00 committed by GitHub
commit 3da01e2322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -183,6 +183,8 @@ By default it will start two containers, one for Faucet server and one for its d
| ---------- | ------------- | -------------------- | --------------------- | ----------------------------------------------------- |
| `faucet` | `3001` | http://faucet:3001 | http://localhost:3001 | [Faucet](https://github.com/oceanprotocol/faucet) |
By default the Faucet allows requests every 24hrs. To disable the timespan check you can pass `FAUCET_TIMESPAN=0` as environment variable before starting the script.
## Spree Network
If you run the `./start_ocean.sh` script with the `--local-spree-node` option (please see [Keeper Node](#keeper-node) section of this document for more details),

View File

@ -20,5 +20,6 @@ services:
- keeper-node
environment:
FAUCET_NODE: ${KEEPER_RPC_URL}
FAUCET_TIMESPAN: ${FAUCET_TIMESPAN}
NODE_ENV: 'production'
MONGO_URL: 'mongodb://mongodb:27017/faucetdbtest'

View File

@ -63,6 +63,9 @@ export DB_CLIENT_KEY=""
export DB_CLIENT_CERT=""
CHECK_ELASTIC_VM_COUNT=true
# Default Faucet options
export FAUCET_TIMESPAN=${FAUCET_TIMESPAN:-24}
# Export User UID and GID
export LOCAL_USER_ID=$(id -u)
export LOCAL_GROUP_ID=$(id -g)