This is a BitTorrent tracker that relies on PostgreSQL for persistence. All announced torrents will be tracked automatically. The HTTP server provides a torrent index list with magnet metadata support on the /
route by default.
- HTTP Tracker: Allows tracking of torrents over HTTP.
- Compact Peer Format: Utilizes a compact format for representing peers in the tracker.
- Scrape: Supports scraping information from the tracker.
- UDP Tracker
- IPv6
ADDRESS
(default:0.0.0.0:9999
): Specifies the address and port for the tracker.ANNOUNCE_URL
(default:http://localhost:9999/announce
): Used for magnet links in the index view.DSN
(default:postgres://tracker:tracker@localhost:5432/tracker
): PostgreSQL connection string.TEMPLATE_PATH
(default:../templates/
): Path to the template files.STATIC_PATH
(default:../static/
): Path to static files.
- Run
go mod download && go build -v -o ./dist/tracker ./cmd
. - The application can be found under the
dist
directory.
- Configure the environment variables under the
backend
block indocker-compose.yml
. - Run
docker compose up
.