tracker/README.md

59 lines
1.7 KiB
Markdown
Raw Normal View History

2022-05-17 18:11:59 +02:00
# LBRY Tracker
2016-02-26 01:17:30 +01:00
2022-05-17 18:11:59 +02:00
The LBRY tracker is a server that helps peers find each other. It was forked from [Chihaya](https://github.com/chihaya/chihaya), an open-source [BitTorrent tracker](https://en.wikipedia.org/wiki/BitTorrent_tracker).
2016-04-03 01:35:04 +02:00
2016-02-26 01:17:30 +01:00
2022-05-17 18:11:59 +02:00
## Installation and Usage
2016-02-26 01:17:30 +01:00
2022-05-17 18:11:59 +02:00
### Building from HEAD
In order to compile the project, the [latest stable version of Go] and knowledge of a [working Go environment] are required.
```sh
2022-05-17 18:11:59 +02:00
git clone git@github.com:lbryio/tracker.git
cd tracker
2022-01-15 19:03:41 +01:00
go build ./cmd/chihaya
./chihaya --help
```
2016-02-26 01:17:30 +01:00
2016-04-03 01:35:04 +02:00
[latest stable version of Go]: https://golang.org/dl
[working Go environment]: https://golang.org/doc/code.html
2022-05-17 18:11:59 +02:00
### Testing
The following will run all tests and benchmarks.
Removing `-bench` will just run unit tests.
```sh
2022-01-15 19:03:41 +01:00
go test -bench $(go list ./...)
```
2022-05-17 18:11:59 +02:00
The tracker executable contains a command to end-to-end test a BitTorrent tracker.
See
```sh
2022-05-17 18:11:59 +02:00
tracker --help
2022-01-15 19:03:41 +01:00
```
### Configuration
2022-05-17 18:11:59 +02:00
Configuration of the tracker is done via one YAML configuration file.
The `dist/` directory contains an example configuration file.
Files and directories under `docs/` contain detailed information about configuring middleware, storage implementations, architecture etc.
2022-05-17 18:11:59 +02:00
## Contributing
Contributions to this project are welcome, encouraged, and compensated. For more details, please check [this](https://lbry.tech/contribute) link.
## License
2022-05-17 18:14:55 +02:00
LBRY's code changes are MIT licensed, and the upstream Chihaya code is licensed under a BSD 2-Clause license. For the full license, see [LICENSE](LICENSE).
2022-05-17 18:11:59 +02:00
## Security
We take security seriously. Please contact security@lbry.com regarding any security issues. [Our PGP key is here](https://lbry.com/faq/pgp-key) if you need it.
## Contact
2016-02-26 01:17:30 +01:00
2022-05-17 18:11:59 +02:00
The primary contact for this project is [@shyba](mailto:vshyba@lbry.com).