Glossary:
- UDP, TCP -- Protocols (used when opening ports)
- SSH -- Terminal, command line, used to control your server
- ISP -- Your server provider (e.g. Alibaba Cloud, Tencent Cloud...)
- Debian -- A Linux system
- Reverse Proxy -- Essential tool for binding domain names (e.g. Nginx...)
Preparation:
- Public IP server
- Using Debian system (this tutorial is only suitable for Debian system)
- Open ports 11893 (UDP) and 22 (TCP)
Steps:
- Connect to your server using SSH (usually provided by ISP through a web interface)
- Enter the command
apt update -yThis command is used to update system software
Wait for the command to complete - Enter the command
apt install wget tmux -yThis command will be used later
Wait for the command to complete - Enter the command
wget https://github.com/ton-utils/reverse-proxy/releases/latest/download/tonutils-reverse-proxy-linux-amd64This command is to download TON reverse proxy (similar to Nginx)
Wait for the command to complete - Enter the command
chmod +x tonutils-reverse-proxy-linux-amd64This command gives execute permission to the file downloaded in step 4 - Enter the command
tmux new -s tonsite(run in the background) - Enter the command
./tonutils-reverse-proxy-linux-amd64 --domain YourDomainHere
For example:./tonutils-reverse-proxy-linux-amd64 --domain cedricchien.ton - After execution, a QR code will appear, scan it with TONKeeper and send a transaction (used to adjust the server bound to your domain name)
- Finally, enter the command
tmux detach(in simple terms: run in the background)
##Note:
- Your website needs to be accessible on port 80 (or 443 depending on the situation before writing the tutorial)