Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Instance layout (base paths)
- method.insert = cfg.download, private|const|string, (cat,"/dwn/")
- method.insert = cfg.logs, private|const|string, (cat,"/config/log/rtorrent/")
- method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent.log")
- method.insert = cfg.session, private|const|string, (cat,"/config/rtorrent/rtorrent_sess")
- method.insert = rtorrent.sock, private|const|string, (cat,"/run/php/.rtorrent.sock")
- ## Connect to ruTorrent Nginx
- execute.nothrow = rm,(cat,(rtorrent.sock))
- network.scgi.open_local = (cat,(rtorrent.sock))
- execute.nothrow = chmod,0770,(cat,(rtorrent.sock))
- execute.nothrow = chgrp,abc,(cat,(rtorrent.sock))
- ## Needed for XMLRPC connection, non UTF-8 torrent file names
- encoding.add = utf8
- ## Created files permission
- system.umask.set = 0027
- ## Global upload and download rate in KiB
- throttle.global_down.max_rate.set_kb = 4096
- throttle.global_up.max_rate.set_kb = 2048
- ## Maximum number of simultaneous downloads and uploads slots
- throttle.max_downloads.global.set = 150
- throttle.max_uploads.global.set = 60
- ## Maximum and minimum number of peers to connect to per torrent while downloading
- throttle.min_peers.normal.set = 10
- throttle.max_peers.normal.set = 50
- ## Same as above but for seeding completed torrents
- throttle.min_peers.seed.set = 0
- throttle.max_peers.seed.set = 20
- ## Maximum number of simultaneous downloads and uploads slots per torrent
- throttle.max_downloads.set = 30
- throttle.max_uploads.set = 20
- ## Set the numwant field sent to the tracker, which indicates how many peers we want.
- trackers.numwant.set = 10
- ## Sessions place
- session.path.set = (cat, (cfg.session))
- session.use_lock.set = 1
- #Log
- print = (cat, "Logging to ", (cfg.logfile))
- log.open_file = "log", (cfg.logfile)
- log.add_output = "info", "log"
- log.add_output = "critical", "log"
- log.add_output = "error", "log"
- log.add_output = "warn", "log"
- log.add_output = "tracker_debug", "log"
- ## Default download location
- directory.default.set = (cat, (cfg.download))
- ## Check disk space
- schedule2 = monitor_diskspace, 15, 60, ((close_low_diskspace, 500M))
- ## Allocate disk space
- system.file.allocate = 1
- ## Listening port for incoming peer traffic
- network.port_range.set = 25251-25251
- network.port_random.set = no
- ## Hash check after torrent finished
- pieces.hash.on_completion.set = no
- ## Encryption
- protocol.encryption.set = allow_incoming,try_outgoing,enable_retry
- ## Tracker-less torrent and UDP tracker support
- dht.mode.set = disable
- protocol.pex.set = no
- trackers.use_udp.set = no
- ## RSS starts without webGUI
- execute.throw = {sh,-c,/usr/bin/php7 /app/rutorrent/php/initplugins.php abc &}
Advertisement
Add Comment
Please, Sign In to add comment