1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-11-22 09:47:04 +01:00

set default faucet timespan

This commit is contained in:
Matthias Kretschmann 2019-07-18 15:41:41 +02:00
parent f956a49589
commit ad59dd3a09
Signed by: m
GPG Key ID: 606EEEF3C479A91F
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)