Torrents through qBittorrent instead of the built-in librqbit client #494

Closed
opened 2026-11-22 11:21:02 -08:00 by rays · 1 comment
Owner

ipx runs its own BitTorrent session (librqbit): it binds 6881, joins the DHT, seeds itself, and brings in librqbit's dependency tree, with two cargo-deny ignores (#281 ringbuf, #493 chrono via librqbit-dht). Tower already runs qBittorrent. Hand torrent enclosures to qBittorrent's Web API instead: ipx still fetches the .torrent itself (guard #320, cap #330), adds it with a save path in the enclosure's own folder (#318, #331) and the seed limits, polls it to the end with the stall limit, and records it. qBittorrent does the seeding.

ipx runs its own BitTorrent session (librqbit): it binds 6881, joins the DHT, seeds itself, and brings in librqbit's dependency tree, with two cargo-deny ignores (#281 ringbuf, #493 chrono via librqbit-dht). Tower already runs qBittorrent. Hand torrent enclosures to qBittorrent's Web API instead: ipx still fetches the .torrent itself (guard #320, cap #330), adds it with a save path in the enclosure's own folder (#318, #331) and the seed limits, polls it to the end with the stall limit, and records it. qBittorrent does the seeding.
rays added the enhancement label 2026-11-22 11:21:02 -08:00
Author
Owner

Done in c4d7b49 and deployed (ipx 1.5.2-dev, 2026-11-22). Torrents go to the qbittorrent container (downloaders project) at http://192.168.1.130:8888: ipx fetches the .torrent, adds it tagged ipx- with save path /ipx-downloads//torrent-, polls it to the end under stall_mins, and qBittorrent seeds to seed_ratio/seed_time_mins. librqbit is out of Cargo.lock and the RUSTSEC-2026-0293 ignore (#281) out of deny.toml; iPX no longer publishes 6881.

Production setup: qbittorrent mounts /mnt/user/ipx/downloads at /ipx-downloads (compose backup compose.yaml.bak-pre-ipx-20261122); its no-password list gained 172.31.0.1/32, the downloaders network's gateway, which is the address iPX's requests arrive from; ipx's config.toml [torrent] has qbittorrent_url and save_path (backup config.toml.bak-pre-qbittorrent). Not yet exercised by a real torrent episode: none in production this week.

Done in c4d7b49 and deployed (ipx 1.5.2-dev, 2026-11-22). Torrents go to the qbittorrent container (downloaders project) at http://192.168.1.130:8888: ipx fetches the .torrent, adds it tagged ipx-<enclosure> with save path /ipx-downloads/<feed>/torrent-<id>, polls it to the end under stall_mins, and qBittorrent seeds to seed_ratio/seed_time_mins. librqbit is out of Cargo.lock and the RUSTSEC-2026-0293 ignore (#281) out of deny.toml; iPX no longer publishes 6881. Production setup: qbittorrent mounts /mnt/user/ipx/downloads at /ipx-downloads (compose backup compose.yaml.bak-pre-ipx-20261122); its no-password list gained 172.31.0.1/32, the downloaders network's gateway, which is the address iPX's requests arrive from; ipx's config.toml [torrent] has qbittorrent_url and save_path (backup config.toml.bak-pre-qbittorrent). Not yet exercised by a real torrent episode: none in production this week.
rays closed this issue 2026-11-22 11:34:53 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#494