# rtorrent configuration # Directories method.insert = cfg.basedir, private|const|string, (cat,"/home/",(system.env,USER),"/") method.insert = cfg.download, private|const|string, (cat,(cfg.basedir),"downloads/torrents/") method.insert = cfg.session, private|const|string, (cat,(cfg.basedir),".local/share/rtorrent/session/") method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"downloads/torrents/watch/") # Create directories if missing execute.throw = sh, -c, (cat,"mkdir -p ",(cfg.download)," ",(cfg.session)," ",(cfg.watch)) # Default directory for downloads directory.default.set = (cfg.download) # Session directory for resume session.path.set = (cfg.session) # Watch directory for .torrent files schedule2 = watch_directory, 10, 10, ((load.start, (cat,(cfg.watch),"*.torrent"))) # Listening port network.port_range.set = 50000-50000 network.port_random.set = no # Limits throttle.max_uploads.set = 100 throttle.max_uploads.global.set = 250 throttle.min_peers.normal.set = 20 throttle.max_peers.normal.set = 60 throttle.min_peers.seed.set = 30 throttle.max_peers.seed.set = 80 throttle.max_downloads.global.set = 10 # Tracker settings trackers.use_udp.set = yes dht.mode.set = auto protocol.pex.set = yes # Encryption protocol.encryption.set = allow_incoming,try_outgoing,enable_retry # Performance tuning network.http.max_open.set = 50 network.max_open_files.set = 600 network.max_open_sockets.set = 300 pieces.memory.max.set = 1800M network.xmlrpc.size_limit.set = 4M # Ratio settings (seed to 2.0 ratio or 48 hours, whichever comes first) ratio.enable = ratio.min.set = 200 ratio.max.set = 300 ratio.upload.set = 1M method.set = group.seeding.ratio.command, "d.close=" # Move completed downloads method.insert = d.move_to_complete, simple, "d.directory.set=$argument.1=; execute=mkdir,-p,$argument.1=; execute=mv,-u,$argument.0=,$argument.1=; d.save_full_session=" # Key bindings (default + some extras) # Use Ctrl+q to quit