Skip to content

Commit

Permalink
chore: Update README (#132)
Browse files Browse the repository at this point in the history
Adds more detail about connecting ton-http-api to the local liteserver.
  • Loading branch information
a26nine authored Oct 26, 2024
1 parent 111dff3 commit d0af890
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ To point the HTTP API to your own lite server you should set `TON_API_TONLIB_LIT
```
python -c 'import codecs; f=open("liteserver.pub", "rb+"); pub=f.read()[4:]; print(str(codecs.encode(pub,"base64")).replace("\n",""))'
```
- The config generated with `mytonctrl` > `installer` > `clcf` adds the public IP of your server in the config file. If there's an active firewall on your server, `ton-http-api` won't be able to connect to the local lite server. In that case, replace the value of lite server's `ip` in `local.config.json` with `2130706433`, which is the integer equivalent of `127.0.0.1` / `localhost`.
- Once config file is created assign variable `TON_API_TONLIB_LITESERVER_CONFIG` to its path, run `./configure.py` and rebuild the project.

#### How to run multiple API instances on single machine?
Expand Down

0 comments on commit d0af890

Please sign in to comment.