This repository allows you easily run rldp-http-proxy to deploy your site in TON network. The rldp-http-proxy is running in Docker container with network_mode=host
.
rldp-proxy.build.args
.docker-compose build
../init.sh
. It generates new adnlid, downloads mainnet config and creates .env
-file with settings.
private/adnl
, hex form to private/adnl-hex
and copy content from your keyring
file in adnl-private
.docker-compose up -d
. Assume that your site is already running on port 80 on the same machine.private/adnl
contains user-friendly adnl-form. Use this address to access to your site.Settings are located in file .env
in the root of the repo.
TON_PROXY_PORT=8080
: HTTP listening port (parameter -p
).TON_PROXY_SERVER_IP=<your-public-ip>
: a public IP of your server.
curl https://ipinfo.io/ip
.TON_PROXY_ADNL_PORT=3333
: a port for ADNL queries.TON_PROXY_REMOTE_ADDR="127.0.0.1:80"
: at this address HTTP requests will be proxied (-R
parameter). Change this to proxy requests to another machine.TON_PROXY_VERBOSITY=3
: verbosity level (for production better use 0
).TON_PROXY_PROXY_ALL=NO
: proxy all HTTP requests (default only .ton and .adnl).