Python API for libtonlibjson (Telegram Open Network Light Client). This project is loosely based on formony ton_client
- First time:
./setup.sh. - Replace server_name in file
infrastructure/nginx.conf. - Set
liteserver_configinsettings.yamltotestnet.jsonormainnet.json. - Create file
private/mongodb_passwordand put password there. - Build services:
sudo docker-compose build. - Run services:
sudo docker-compose up -d. - Generate certs:
- Connect to nginx container:
sudo docker exec -it pytonv3_nginx_1 /bin/bash. - Setup certs:
certbot --nginx. - Enter email, agree with EULA, choose DNS name.
- Restart NGINX:
sudo docker-compose restart nginx.
- Connect to nginx container:
- Run script
infrastructure/scripts/get_container_logs.sh <service-name-from-compose-file>.
- (Optional) Set commit in script
infrastructure/scripts/build_tonlib.sh(lineRUN cd /ton && git checkout <...>). - Run script.