Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
websharik committed Aug 4, 2024
1 parent fe7fd36 commit 7dae285
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,24 @@ Alternatively, you can run in simple mode, with .adnl domain, if you don't have

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

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/`
If you want to change some settings, like proxy pass url - open `config.json` file, edit and restart proxy.

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

If you want to change some settings, like proxy pass url - open `config.json` file, edit and restart proxy.
Or use ENV variables:
- `GLOBAL_CONFIG_URL` (default: https://ton.org/global.config.json)
- `EXTERNAL_IP` (default: detect via http://ip-api.com/json/)
- `LISTEN_IP` (default: 0.0.0.0)
- `LISTEN_PORT` (default: 9000 + rand)
- `PROXY_PASS` (default: http://127.0.0.1:80)
- `PRIVATE_KEY` (default: generate and write to `config.json`, is env not passed. It can be used on first start to generate Private Key )

ENV's, has priority over `config.json` and can be useful to run reverse-proxy in Docker container.

*Using `PRIVATE_KEY` is more safety then store key in file and recommended for production.

### FAQ

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

0 comments on commit 7dae285

Please sign in to comment.