Environment variables

ParameterDescriptionDefault Value

PORT

Port to run application on

3000

APP_ENABLE_STANDARD_FAUCET

Enable /faucet/refill/{address} endpoint

true

APP_ENABLE_CAPTCHA_FAUCET

Enable /faucet/refill_with_captcha endpoint

false

APP_ENABLE_KEY_OWNER_FAUCET

Enable /faucet/refill_token_owner endpoint

false

APP_ENABLE_AUTHORIZED_FAUCET

Enable /faucet/refill_authorized/{address} endpoint

false

BLOCKCHAIN_NODE_URL

Blockchain node url

http://localhost:6869

BLOCKCHAIN_CHAIN_ID

Blockchain chain id

R

BLOCKCHAIN_SEED

Organisation address seed phrase (required)

-

FAUCET_REFILL_MAX_AMOUNT

Maximum amount of tokens while refilling

1

CAPTCHA_SECRET_KEY

Google reCaptcha v2 secret key

6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

FAUCET_DAPP_FATHER_ADDRESS

Dapp father address used for validation

-

FAUCET_AUTHORIZED_API_KEY

Api key used for validating refill_authorized method

-

NOTE: Default Captcha key will verify anything, so make sure to set a different one in production!

Site key for default secret key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI

BLOCKCHAIN_SEED is required to start the app.

The app uses waves private node by default. If you want to deploy the app to testnet, change those environment variables:

export BLOCKCHAIN_NODE_URL='https://master.testnet.node.smartkeyplatform.io'

export BLOCKCHAIN_CHAIN_ID='A'

and make sure you have funds on your account.

Last updated