jesec / rtorrent

stable, high-performance and low resource consumption BitTorrent client
GNU General Public License v2.0
192 stars 38 forks source link

Multi user support #33

Closed albertofustinoni closed 2 years ago

albertofustinoni commented 2 years ago

Would it be possible to add multi user support to rtorrent? By that I mean being able to run one instance of rtorrent but presenting independent lists of running torrents (and allowing each user to add/remove torrents independently) according to a user parameter passed in RPC calls. Basically make RPC calls behave like any standard multi-user web API.

Intended use case would be running rtorrent as a daemon in the context of its own user with a webUI like flood or transmission as the front-end, and having the web server relay the ID of the logged in user to RPC calls.

Germwalker commented 2 years ago

You can start multiple sessions of rTorrent via the startup script, juste change the service name, working directory and user/group. Than you make the same thing with multiples flood instances, one by rtorrent service. You'll need to modify the scgi_port = 127.0.0.1:4865 inside .rtorrent.rc to match flood/rtorrent pair on every instances. Then you can reverse proxy to floods ports with a web server like nginx.

You'll have https://user1.myseedbox.com, https://user2.myseedbox.com ...

jesec commented 2 years ago

^ simply run multiple instances of rTorrent.