Skip to content

Commit 92ea536

Browse files
committed
fix liteserver config variable
1 parent 111dff3 commit 92ea536

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ There are two main ways to run TON HTTP API:
5252
### Configuration
5353

5454
You should specify environment parameters and run `./configure.py` to create `.env` file.
55-
```bash
56-
export TON_API_LITESERVER_CONFIG=private/testnet.json
57-
./configure.py
58-
```
55+
56+
```bash
57+
export TON_API_TONLIB_LITESERVER_CONFIG=private/testnet.json
58+
./configure.py
59+
```
5960

6061
The service supports the following environment variables:
6162
#### Webserver settings
@@ -146,6 +147,7 @@ To point the HTTP API to your own lite server you should set `TON_API_TONLIB_LIT
146147
```
147148
python -c 'import codecs; f=open("liteserver.pub", "rb+"); pub=f.read()[4:]; print(str(codecs.encode(pub,"base64")).replace("\n",""))'
148149
```
150+
- 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`.
149151
- Once config file is created assign variable `TON_API_TONLIB_LITESERVER_CONFIG` to its path, run `./configure.py` and rebuild the project.
150152

151153
#### How to run multiple API instances on single machine?

ton-http-api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ There are two main ways to run TON HTTP API:
4747

4848
You should specify environment parameters and run `./configure.py` to create `.env` file.
4949
```bash
50-
export TON_API_LITESERVER_CONFIG=private/testnet.json
50+
export TON_API_TONLIB_LITESERVER_CONFIG=private/testnet.json
5151
./configure.py
5252
```
5353

0 commit comments

Comments
 (0)