add LITECOIND_COOKIEFILE

This commit is contained in:
nicolas.dorier 2018-01-09 18:42:44 +09:00
parent 3a5b79d45d
commit 980d4f8043
2 changed files with 5 additions and 1 deletions

View File

@ -24,4 +24,8 @@ The relevant environment variables are:
* `BITCOIND_NETWORKPARAMETER`: The blockchain identifier parameter used by bitcoind (`regtest=1` for regtest, `testnet=1` for testnet, `#mainnet=1` for mainnet) * `BITCOIND_NETWORKPARAMETER`: The blockchain identifier parameter used by bitcoind (`regtest=1` for regtest, `testnet=1` for testnet, `#mainnet=1` for mainnet)
* `ACME_CA_URI`: Let's encrypt API endpoint (`https://acme-staging.api.letsencrypt.org/directory` for a staging certificate, `https://acme-v01.api.letsencrypt.org/directory` for a production one) * `ACME_CA_URI`: Let's encrypt API endpoint (`https://acme-staging.api.letsencrypt.org/directory` for a staging certificate, `https://acme-v01.api.letsencrypt.org/directory` for a production one)
If using litecoin:
* `LITECOIND_COOKIEFILE`: The relative path to RPC cookie file from bitcoin's data directory. (`.cookie` for mainnet, `regtest/.cookie` for regtest, `testnet4/.cookie` for testnet)
Any unset or empty environment variable will be set for a `regtest` deployment. Any unset or empty environment variable will be set for a `regtest` deployment.

View File

@ -127,7 +127,7 @@ services:
environment: environment:
NBXPLORER_NETWORK: litecoin-${NBITCOIN_NETWORK:-regtest} NBXPLORER_NETWORK: litecoin-${NBITCOIN_NETWORK:-regtest}
NBXPLORER_RPCURL: http://litecoind:43782/ NBXPLORER_RPCURL: http://litecoind:43782/
NBXPLORER_RPCCOOKIEFILE: /ltc/${BITCOIND_COOKIEFILE:-regtest/.cookie} NBXPLORER_RPCCOOKIEFILE: /ltc/${LITECOIND_COOKIEFILE:-regtest/.cookie}
NBXPLORER_NODEENDPOINT: litecoind:39388 NBXPLORER_NODEENDPOINT: litecoind:39388
NBXPLORER_BIND: 0.0.0.0:32838 NBXPLORER_BIND: 0.0.0.0:32838
NBXPLORER_NOAUTH: 1 NBXPLORER_NOAUTH: 1