Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/liulifox233/tracker-collector
- Owner: liulifox233
- License: mit
- Created: 2024-12-10T08:47:37.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2024-12-10T10:07:44.000Z (28 days ago)
- Last Synced: 2024-12-10T10:19:10.128Z (28 days ago)
- Topics: cloudflare, rust, webassembly, workers
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`)