golya87

rtorrent.rc

Jan 1st, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. ## Instance layout (base paths)
  2. method.insert = cfg.download, private|const|string, (cat,"/dwn/")
  3. method.insert = cfg.logs, private|const|string, (cat,"/config/log/rtorrent/")
  4. method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent.log")
  5. method.insert = cfg.session, private|const|string, (cat,"/config/rtorrent/rtorrent_sess")
  6. method.insert = rtorrent.sock, private|const|string, (cat,"/run/php/.rtorrent.sock")
  7.  
  8.  
  9. ## Connect to ruTorrent Nginx
  10. execute.nothrow = rm,(cat,(rtorrent.sock))
  11. network.scgi.open_local = (cat,(rtorrent.sock))
  12. execute.nothrow = chmod,0770,(cat,(rtorrent.sock))
  13. execute.nothrow = chgrp,abc,(cat,(rtorrent.sock))
  14.  
  15.  
  16. ## Needed for XMLRPC connection, non UTF-8 torrent file names
  17. encoding.add = utf8
  18.  
  19.  
  20. ## Created files permission
  21. system.umask.set = 0027
  22.  
  23.  
  24. ## Global upload and download rate in KiB
  25. throttle.global_down.max_rate.set_kb = 4096
  26. throttle.global_up.max_rate.set_kb = 2048
  27.  
  28. ## Maximum number of simultaneous downloads and uploads slots
  29. throttle.max_downloads.global.set = 150
  30. throttle.max_uploads.global.set = 60
  31.  
  32. ## Maximum and minimum number of peers to connect to per torrent while downloading
  33. throttle.min_peers.normal.set = 10
  34. throttle.max_peers.normal.set = 50
  35.  
  36. ## Same as above but for seeding completed torrents
  37. throttle.min_peers.seed.set = 0
  38. throttle.max_peers.seed.set = 20
  39.  
  40. ## Maximum number of simultaneous downloads and uploads slots per torrent
  41. throttle.max_downloads.set = 30
  42. throttle.max_uploads.set = 20
  43.  
  44. ## Set the numwant field sent to the tracker, which indicates how many peers we want.
  45. trackers.numwant.set = 10
  46.  
  47.  
  48. ## Sessions place
  49. session.path.set = (cat, (cfg.session))
  50. session.use_lock.set = 1
  51.  
  52.  
  53. #Log
  54. print = (cat, "Logging to ", (cfg.logfile))
  55. log.open_file = "log", (cfg.logfile)
  56. log.add_output = "info", "log"
  57. log.add_output = "critical", "log"
  58. log.add_output = "error", "log"
  59. log.add_output = "warn", "log"
  60. log.add_output = "tracker_debug", "log"
  61.  
  62.  
  63. ## Default download location
  64. directory.default.set = (cat, (cfg.download))
  65.  
  66.  
  67. ## Check disk space
  68. schedule2 = monitor_diskspace, 15, 60, ((close_low_diskspace, 500M))
  69.  
  70.  
  71. ## Allocate disk space
  72. system.file.allocate = 1
  73.  
  74.  
  75. ## Listening port for incoming peer traffic
  76. network.port_range.set = 25251-25251
  77. network.port_random.set = no
  78.  
  79.  
  80. ## Hash check after torrent finished
  81. pieces.hash.on_completion.set = no
  82.  
  83.  
  84. ## Encryption
  85. protocol.encryption.set = allow_incoming,try_outgoing,enable_retry
  86.  
  87.  
  88. ## Tracker-less torrent and UDP tracker support
  89. dht.mode.set = disable
  90. protocol.pex.set = no
  91. trackers.use_udp.set = no
  92.  
  93.  
  94. ## RSS starts without webGUI
  95. execute.throw = {sh,-c,/usr/bin/php7 /app/rutorrent/php/initplugins.php abc &}
Advertisement
Add Comment
Please, Sign In to add comment