Skip to content

Commit f741f37

Browse files
committed
Update README.md
1 parent fe7fd36 commit f741f37

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,22 @@ 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/`
51-
5250
Proxy adds additional headers:
5351
`X-Adnl-Ip` - ip of client, and `X-Adnl-Id` - adnl id of client
5452

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

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

0 commit comments

Comments
 (0)