How to launch your TON Site
At first glance, a TON Site may seem complicated. But in practice, setting it up is totally doable: a domain, proxy, website, and linking — just a few stages.
We’ve prepared a step-by-step guide in the cards — from server setup to domain linking. Everything is as simple and clear as possible. Launch your site in Web 3.0 and share the results.
Thanks to @rece2021 and the community members for their help and experience, which we used to create this post.
Full list of commands
Connect to the server (SSH)
ssh root@IP
# if the port is not 22:
ssh -p 2222 root@IP
Install required packages
apt update
apt install -y sudo screen
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
Install Caddy
sudo apt install caddy
Deploy your site
Update the Caddy config (/etc/caddy/Caddyfile), specifying the port instead of a domain, for example:
:80 {
root * /var/www/mysite
file_manager
}
# or
:3080 {
reverse_proxy localhost:3000
}
Start screen session
screen
Install TON Proxy
wget https://github.com/tonutils/reverse-proxy/releases/latest/download/tonutils-reverse-proxy-linux-amd64
chmod +x tonutils-reverse-proxy-linux-amd64
Run TON Proxy (first time)
./tonutils-reverse-proxy-linux-amd64
(After this, a config.json file will appear.)
Configure config.json
Open the file and replace the line:
"proxy_pass": "http://127.0.0.1:XXXX"
Replace XXXX with your site’s port.
Launch with domain
./tonutils-reverse-proxy-linux-amd64 --domain yourdomain.ton -tx-url
After that, a ton://... link will appear → open it in Tonkeeper/Tonhub and confirm the transaction.
Обсуждение 0
Обсуждение не доступно в веб-версии. Чтобы написать комментарий, перейдите в приложение Telegram.
Обсудить в Telegram