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 f741f37
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,22 @@ 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/`

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: http://127.0.0.1:80)
- `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 f741f37

Please sign in to comment.