Skip to content

Commit

Permalink
Merge pull request #1313 from Chia-Network/configexamplejson
Browse files Browse the repository at this point in the history
docs: document config.json file
  • Loading branch information
TheLastCicada authored Aug 16, 2024
2 parents 4b91a17 + a38380e commit 32e6e0c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ The CADT UI can be hosted as a web application, either for internal use, or made

To host the UI on the web, use the [web-build.tar.gz file from the releases page](https://github.com/Chia-Network/cadt-ui/releases). One of the simplest solutions is to uncompress these files into a [public S3 bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteAccessPermissionsReqd.html). These files could also be served by any webserver, such as Nginx or Apache.

To make the CADT UI web application automatically connect to a CADT host by default, build the application from source (`npm install && npm run build`) with the following environment variables set:

* `REACT_APP_API_HOST`: Set to the URL of the CADT API, including the `/v1` path. For example: `https://www.example.com:31310/v1`
* `REACT_APP_APP_URL`: Set to the URL of the UI application.
To make the CADT UI web application automatically connect to a CADT host by default, copy the `config.example.json` file to `config.json` and change the `apiHost` to be the CADT API hostname, including http:// and the path (everything before the `/v1` part of the API URL)

### From Source

Expand Down

0 comments on commit 32e6e0c

Please sign in to comment.