Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ There is a [Network API](#network-api) which can be used to get latest set of mi
## Table of Contents
- [Züs Overview](#züs-overview)
- [Setup](#setup)
- [Local Development](#local-development)
- [Buildding and starting the node](#building-and-starting-the-node)
- [Point to another blockchain](#point-to-another-blockchain)
- [Exposed APIs](#exposed-apis)
Expand Down Expand Up @@ -36,6 +37,28 @@ Clone the repo and run the following command inside the cloned directory
./docker.local/bin/init.sh
```

## Local Development

When using 0dns for local development, you need to configure the `docker.local/config/0dns.yaml` file to disable HTTPS and path-based routing. This ensures that the miner and sharder URLs returned by the Network API work correctly in a local environment.

Update `docker.local/config/0dns.yaml` and set:

```yaml
use_https: false
use_path: false
```

These settings ensure that:
- URLs use `http://` instead of `https://` (appropriate for local development)
- URLs don't include path prefixes, making them compatible with local network configurations

**Note:** After making these changes, restart the 0dns service for the changes to take effect:

```
./docker.local/bin/stop.sh
./docker.local/bin/start.sh
```

## Building and Starting the Node

If there is new code, do a git pull and run the following command
Expand Down
Loading