How to deploy as TON Site

  1. Run Caddy server:
docker compose up --build -d
  1. Download TON reverse-proxy:
wget -O tonutils-reverse-proxy https://github.com/ton-utils/reverse-proxy/releases/latest/download/tonutils-reverse-proxy-linux-arm64
chmod +x tonutils-reverse-proxy
  1. First run of reverse proxy (to get config and approve transaction with QR-code):
./tonutils-reverse-proxy --domain karfly.ton
  1. Edit config:
sudo vim config.json
# set "proxy_pass": "http://127.0.0.1:12169/"
# open "port" on your instance
  1. Run TON reverse-proxy (in daemon mode):
./tonutils-reverse-proxy --domain karfly.ton &
  1. Stop TON reverse-proxy:
ps aux | grep tonutils-reverse-proxy
kill -9 XXX

Redirect mode

Uncomment line with Caddyfile.redirect in docker-compose.yml and restart

Host TON Site on TON Storage

You can use tonbyte.com provider. Follow instructions on their website.