Skip to content

acadabus/ton-http-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyTON

Python API for libtonlibjson (Telegram Open Network Light Client). This project is loosely based on formony ton_client

Running service

  • First time: ./setup.sh.
  • Replace server_name in file infrastructure/nginx.conf.
  • Set liteserver_config in settings.yaml to testnet.json or mainnet.json.
  • Create file private/mongodb_password and 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.

Get logs from nginx

  • Run script infrastructure/scripts/get_container_logs.sh <service-name-from-compose-file>.

Update library

  • (Optional) Set commit in script infrastructure/scripts/build_tonlib.sh (line RUN cd /ton && git checkout <...>).
  • Run script.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.5%
  • Jupyter Notebook 3.9%
  • Dockerfile 1.7%
  • Shell 0.9%