- Fetch the tracker list from urls in trackers.yml.
- Merge the tracker list with the trackers from the request.
- (scheduled) Connect to aria2 with JSON-RPC, then add the trackers to aria2.
-
Set urls in trackers.yml.
-
Set CLOUDFLARE_API_TOKEN in repository secrets.
-
Deploy to Cloudflare Workers
-
Set ARIA2_URL, SECRET_KEY and schedule in Cloudflare Workers settings.
-
Done.
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
)