From d65c3701cdee607b27c849e7f861873de871291f Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sun, 1 May 2022 13:13:59 -0700 Subject: [PATCH] fix(README): Updating README --- README.md | 3 +++ config/env/common.js | 4 ++-- production/docker/docker-compose.yml | 4 ++++ production/rpi-docker/docker-compose.yml | 4 ++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e9ea476..e671ba5 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ Here are the steps involved in setting up bch-dex: 1. To take the other side of the trade, click the `Take` button in the UI. 1. You can add the 12-word mnemonic from the `wallet.json` file to the the web wallet, which will mirror your wallet in the UI, and allow you to perform basic wallet functions (send and receive BCH and tokens). +## Blockchain Infrastructure + +The P2WDB and bch-dex containers requires a 'Global Back End' (as described in [CashStack.info](https://cashstack.info)) in order to connect to the blockchain. By default, the Docker containers connect to [free-bch.fullstack.cash](https://free-bch.fullstack.cash/). Several community-provided Global Back End servers are provided and can be [viewed here](https://gist.github.com/christroutner/63c5513782181f8b8ea3eb89f7cadeb6). The back end can be changed by setting the `CONSUMER_URL` environment variable in the `docker-compose.yml` file. ### Applying Software Updates As this is an active project, software updates will happen frequently. To apply a software update, perform these steps. diff --git a/config/env/common.js b/config/env/common.js index 0066fe0..e2ae8c3 100644 --- a/config/env/common.js +++ b/config/env/common.js @@ -35,8 +35,8 @@ module.exports = { useFullStackCash: process.env.USE_FULLSTACKCASH ? true : false, consumerUrl: process.env.CONSUMER_URL ? process.env.CONSUMER_URL - // : 'https://free-bch.fullstack.cash', - : 'https://wa-usa-bch-consumer.fullstackcash.nl', + : 'https://free-bch.fullstack.cash', + // : 'https://wa-usa-bch-consumer.fullstackcash.nl', // P2WDB URL that will accept API calls from the p2wdb npm library. p2wdbUrl: process.env.P2WDB_URL ? process.env.P2WDB_URL : 'https://p2wdb.fullstack.cash', diff --git a/production/docker/docker-compose.yml b/production/docker/docker-compose.yml index 25ab878..9a7c112 100644 --- a/production/docker/docker-compose.yml +++ b/production/docker/docker-compose.yml @@ -48,6 +48,8 @@ services: # dockerfile: Dockerfile image: christroutner/p2wdb-bch-dex:v1.6.2 container_name: p2wdb + environment: + CONSUMER_URL: 'https://free-bch.fullstack.cash' logging: driver: 'json-file' options: @@ -71,6 +73,8 @@ services: # dockerfile: Dockerfile image: christroutner/bch-dex:v1.6.2 container_name: bch-dex + environment: + CONSUMER_URL: 'https://free-bch.fullstack.cash' logging: driver: 'json-file' options: diff --git a/production/rpi-docker/docker-compose.yml b/production/rpi-docker/docker-compose.yml index 4499ffb..53cb106 100644 --- a/production/rpi-docker/docker-compose.yml +++ b/production/rpi-docker/docker-compose.yml @@ -48,6 +48,8 @@ services: context: ./p2wdb/ dockerfile: Dockerfile container_name: p2wdb + environment: + CONSUMER_URL: 'https://free-bch.fullstack.cash' logging: driver: 'json-file' options: @@ -70,6 +72,8 @@ services: context: ./bch-dex/ dockerfile: Dockerfile container_name: bch-dex + environment: + CONSUMER_URL: 'https://free-bch.fullstack.cash' logging: driver: 'json-file' options: