From 2dfbd5409b3f771fe6d0d7c819e486fd1aa35c18 Mon Sep 17 00:00:00 2001 From: Rahul Sethuram Date: Fri, 28 Aug 2020 16:38:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Some=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/reference/node.md | 29 +++++++++++++++++++++++++++++ ops/start-indra.sh | 1 - 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 docs/src/reference/node.md diff --git a/docs/src/reference/node.md b/docs/src/reference/node.md new file mode 100644 index 0000000000..fbbbce0d8a --- /dev/null +++ b/docs/src/reference/node.md @@ -0,0 +1,29 @@ +# Node + +## Configuration + +### Environment Variables + +The following environment variables are used by the node: + +| Variable Name | Type | Description | Example | +| --------------------------------------- | ----------- | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `INDRA_ADMIN_TOKEN` | String | Token for administrative functions. | cxt1234 | +| `INDRA_CHAIN_PROVIDERS` | JSON String | Mapping of chainId to ethProviderUrl | '{"1":"https://mainnet.infura.io/v3/TOKEN","4":"https://rinkeby.infura.io/v3/TOKEN"}' | +| `INDRA_CONTRACT_ADDRESSES` | JSON String | Contract information, keyed by chainId | '{ "1337": { "ChallengeRegistry": { "address": "0x8CdaF0CD259887258Bc13a92C0a6dA92698644C0", "creationCodeHash": "0x42eba77f58ecb5c1352e9a62df1eed73aa1a89890ff73be1939f884f62d88c46", "runtimeCodeHash": "0xc38bff65185807f2babc2ae1334b0bdcf5fe0192ae041e3033b2084c61f80950", "txHash": "0x89f705aefdffa59061d97488e4507a7af4a4751462e100b8ed3fb1f5cc2238af" }, ...}' | +| `INDRA_DEFAULT_REBALANCE_PROFILE_ETH` | JSON String | Rebalance Profile to use by default | '{"collateralizeThreshold":"500000000000","target":"1500000000000","reclaimThreshold":"10000000000000"}' | +| `INDRA_DEFAULT_REBALANCE_PROFILE_TOKEN` | JSON String | Rebalance Profile to use by default (real units) | '{"collateralizeThreshold":"500000000000","target":"1500000000000","reclaimThreshold":"10000000000000"} | +| `INDRA_LOG_LEVEL` | Number | Log level - 1 = Error, 4 = Debug | 3 | +| `INDRA_MNEMONIC_FILE` | +| `INDRA_NATS_JWT_SIGNER_PRIVATE_KEY` | +| `INDRA_NATS_JWT_SIGNER_PUBLIC_KEY` | +| `INDRA_NATS_SERVERS` | +| `INDRA_NATS_WS_ENDPOINT` | +| `INDRA_PG_DATABASE` | +| `INDRA_PG_HOST` | +| `INDRA_PG_PASSWORD_FILE` | +| `INDRA_PG_PORT` | +| `INDRA_PG_USERNAME` | +| `INDRA_PORT` | +| `INDRA_REDIS_URL` | +| | diff --git a/ops/start-indra.sh b/ops/start-indra.sh index 018e86f190..6cc85eb308 100644 --- a/ops/start-indra.sh +++ b/ops/start-indra.sh @@ -360,7 +360,6 @@ services: INDRA_DEFAULT_REBALANCE_PROFILE_TOKEN: '$INDRA_DEFAULT_REBALANCE_PROFILE_TOKEN' INDRA_LOG_LEVEL: '$INDRA_LOG_LEVEL' INDRA_MNEMONIC_FILE: '$INDRA_MNEMONIC_FILE' - INDRA_MAX_CHANNEL_COLLATERALIZATION: '$INDRA_MAX_CHANNEL_COLLATERALIZATION' INDRA_NATS_JWT_SIGNER_PRIVATE_KEY: '$INDRA_NATS_JWT_SIGNER_PRIVATE_KEY' INDRA_NATS_JWT_SIGNER_PUBLIC_KEY: '$INDRA_NATS_JWT_SIGNER_PUBLIC_KEY' INDRA_NATS_SERVERS: 'nats://nats:$nats_port'