Torrents through qBittorrent instead of the built-in librqbit client #494
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Done in
c4d7b49and 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.