Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liulifox233/tracker-collector

A Rust Cloudflare Worker for automatically collecting and updating aria2 trackers
https://github.com/liulifox233/tracker-collector

cloudflare rust webassembly workers

Last synced: 25 days ago
JSON representation

A Rust Cloudflare Worker for automatically collecting and updating aria2 trackers

Awesome Lists containing this project

README

        

# tracker-collector

![metadata](https://github.com/liulifox233/tracker-collector/actions/workflows/deploy.yml/badge.svg)

## How it works?

1. Fetch the tracker list from urls in trackers.yml.
2. Merge the tracker list with the trackers from the request.
3. (scheduled) Connect to aria2 with JSON-RPC, then add the trackers to aria2.

## Usage

### Automatically update

1. Set urls in trackers.yml.

2. Set CLOUDFLARE_API_TOKEN in repository secrets.

3. Deploy to Cloudflare Workers

[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/liulifox233/tacker-collector)

4. Set ARIA2_URL, SECRET_KEY and schedule in Cloudflare Workers settings.

5. Done.

### Manually update

If you're using aria2, you access trackers list by `GET /`.
If you're using other download tools, you can access trackers list by `GET /xxx`.(xxx can be any text, for example, `GET /abc`)