Skip to content

Commit 7dae285

Browse files
committed
Update README.md
1 parent fe7fd36 commit 7dae285

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,24 @@ Alternatively, you can run in simple mode, with .adnl domain, if you don't have
4747

4848
Now anyone can access your TON Site! Using ADNL address or domain.
4949

50-
If you want to change some settings, like proxy pass url - open `config.json` file, edit and restart proxy. Default proxy pass url is `http://127.0.0.1:80/`
50+
If you want to change some settings, like proxy pass url - open `config.json` file, edit and restart proxy.
5151

5252
Proxy adds additional headers:
5353
`X-Adnl-Ip` - ip of client, and `X-Adnl-Id` - adnl id of client
5454

55+
If you want to change some settings, like proxy pass url - open `config.json` file, edit and restart proxy.
56+
Or use ENV variables:
57+
- `GLOBAL_CONFIG_URL` (default: https://ton.org/global.config.json)
58+
- `EXTERNAL_IP` (default: detect via http://ip-api.com/json/)
59+
- `LISTEN_IP` (default: 0.0.0.0)
60+
- `LISTEN_PORT` (default: 9000 + rand)
61+
- `PROXY_PASS` (default: http://127.0.0.1:80)
62+
- `PRIVATE_KEY` (default: generate and write to `config.json`, is env not passed. It can be used on first start to generate Private Key )
63+
64+
ENV's, has priority over `config.json` and can be useful to run reverse-proxy in Docker container.
65+
66+
*Using `PRIVATE_KEY` is more safety then store key in file and recommended for production.
67+
5568
### FAQ
5669

5770
#### Can I have multiple domains on single reverse-proxy?

0 commit comments

Comments
 (0)