Torrust Tracker
Torrust Tracker, is a BitTorrent Tracker (a service that matchmakes peers and collects statistics) written in Rust Language and axum (a modern web application framework). This tracker aims to be respectful to established standards, (both formal and otherwise).
This is a Torrust project and is in active development. It is community supported as well as sponsored by Nautilus Cyberneering.
- We have a container guide for those who wish to get started with Docker or Podman
Key Features
- High Quality and Modern Rust Codebase.
- Documentation Generated from Code Comments.
- Comprehensive Suit of Unit and Functional Tests.
- Good Performance in Busy Conditions.
- Support for
UDP,HTTP, andTLSSockets. - Native
IPv4andIPv6support. - Private & Whitelisted mode.
- Tracker Management API.
- Support newTrackon checks.
- Persistent
SQLite3orMySQLDatabases.
Implemented BitTorrent Enhancement Proposals (BEPs)
- BEP 03 : The BitTorrent Protocol.
- BEP 07 : IPv6 Support.
- BEP 15 : UDP Tracker Protocol for BitTorrent.
- BEP 23 : Tracker Returns Compact Peer Lists.
- BEP 27 : Private Torrents.
- BEP 48 : Tracker Protocol Extension: Scrape.
Getting Started
Container Version
The Torrust Tracker is deployed to DockerHub, you can run a demo immediately with the following commands:
Docker:
Please read our container guide for more information.
Podman:
Please read our container guide for more information.
Development Version
- Please assure you have the latest stable (or nightly) version of rust.
- Please assure that you computer has enough ram. Recommended 16GB.
Checkout, Test and Run:
# Checkout repository into a new folder:
# Change into directory and create a empty database file:
# Check all tests in application:
# Run the tracker:
Customization:
# Copy the default configuration into the standard location:
# Customize the tracker configuration (for example):
# Run the tracker with the updated configuration:
TORRUST_TRACKER_PATH_CONFIG="./storage/tracker/etc/tracker.toml"
Optionally, you may choose to supply the entire configuration as an environmental variable:
# Use a configuration supplied on an environmental variable:
TORRUST_TRACKER_CONFIG=
For deployment you should override the api_admin_token by using an environmental variable:
# Generate a Secret Token:
|
# Override secret in configuration using an environmental variable:
TORRUST_TRACKER_CONFIG= \
TORRUST_TRACKER_API_ADMIN_TOKEN= \
Please view our crate documentation for more detailed instructions.
Services
The following services are provided by the default configuration:
- UDP (tracker)
udp://127.0.0.1:6969/announce.
- HTTP (tracker)
http://127.0.0.1:6969/announce.
- API (management)
http://127.0.0.1:1212/api/v1/stats?token=MyAccessToken.
Documentation
Contributing
This is an open-source community supported project. We welcome contributions from the community!
How can you contribute?
- Bug reports and feature requests.
- Code contributions. You can start by looking at the issues labeled "good first issues".
- Documentation improvements. Check the documentation and API documentation for typos, errors, or missing information.
- Participation in the community. You can help by answering questions in the discussions.
License
The project is licensed under a dual license. See COPYRIGHT.
Acknowledgments
This project was a joint effort by Nautilus Cyberneering GmbH and Dutch Bits. Also thanks to Naim A. and greatest-ape for some parts of the code. Further added features and functions thanks to Power2All.