rtorrent.rc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #############################################################################
  2. # A minimal rTorrent configuration that provides the basic features
  3. # you want to have in addition to the built-in defaults.
  4. #
  5. # See https://github.com/rakshasa/rtorrent/wiki/CONFIG-Template
  6. # for an up-to-date version.
  7. #############################################################################
  8. ## Instance layout (base paths)
  9. method.insert = cfg.basedir, private|const|string, (cat,"/mnt/seagate/torrents/rtorrent/")
  10. method.insert = cfg.download, private|const|string, (cat,(cfg.basedir),"download/")
  11. method.insert = cfg.logs, private|const|string, (cat,(cfg.basedir),"log/")
  12. method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log")
  13. method.insert = cfg.session, private|const|string, (cat,(cfg.basedir),".session/")
  14. method.insert = cfg.watch, private|const|string, (cat,"/home/zadca123/.config/rtorrent/watch")
  15. ## Create instance directories
  16. execute.throw = sh, -c, (cat,\
  17. "mkdir -p \"",(cfg.download),"\" ",\
  18. "\"",(cfg.logs),"\" ",\
  19. "\"",(cfg.session),"\" ",\
  20. "\"",(cfg.watch),"/load\" ",\
  21. "\"",(cfg.watch),"/start\" ")
  22. ## Listening port for incoming peer traffic (fixed; you can also randomize it)
  23. network.port_range.set = 50000-50000
  24. network.port_random.set = no
  25. ## Tracker-less torrent and UDP tracker support
  26. ## (conservative settings for 'private' trackers, change for 'public')
  27. dht.mode.set = disable
  28. protocol.pex.set = no
  29. trackers.use_udp.set = no
  30. ## Peer settings
  31. throttle.max_uploads.set = 100
  32. throttle.max_uploads.global.set = 250
  33. throttle.min_peers.normal.set = 20
  34. throttle.max_peers.normal.set = 60
  35. throttle.min_peers.seed.set = 30
  36. throttle.max_peers.seed.set = 80
  37. trackers.numwant.set = 80
  38. protocol.encryption.set = allow_incoming,try_outgoing,enable_retry
  39. ## Limits for file handle resources, this is optimized for
  40. ## an `ulimit` of 1024 (a common default). You MUST leave
  41. ## a ceiling of handles reserved for rTorrent's internal needs!
  42. network.http.max_open.set = 50
  43. network.max_open_files.set = 600
  44. network.max_open_sockets.set = 300
  45. ## Memory resource usage (increase if you have a large number of items loaded,
  46. ## and/or the available resources to spend)
  47. pieces.memory.max.set = 1800M
  48. network.xmlrpc.size_limit.set = 4M
  49. ## Basic operational settings (no need to change these)
  50. session.path.set = (cat, (cfg.session))
  51. directory.default.set = (cat, (cfg.download))
  52. log.execute = (cat, (cfg.logs), "execute.log")
  53. #log.xmlrpc = (cat, (cfg.logs), "xmlrpc.log")
  54. execute.nothrow = sh, -c, (cat, "echo >",\
  55. (session.path), "rtorrent.pid", " ",(system.pid))
  56. ## Other operational settings (check & adapt)
  57. scgi_local = /tmp/rtorrent-rpc.socket
  58. encoding.add = utf8
  59. system.umask.set = 0027
  60. system.cwd.set = (directory.default)
  61. network.http.dns_cache_timeout.set = 25
  62. schedule2 = monitor_diskspace, 15, 60, ((close_low_diskspace, 1000M))
  63. #pieces.hash.on_completion.set = no
  64. #view.sort_current = seeding, greater=d.ratio=
  65. #keys.layout.set = qwerty
  66. #network.http.capath.set = "/etc/ssl/certs"
  67. #network.http.ssl_verify_peer.set = 0
  68. #network.http.ssl_verify_host.set = 0
  69. ## Some additional values and commands
  70. method.insert = system.startup_time, value|const, (system.time)
  71. method.insert = d.data_path, simple,\
  72. "if=(d.is_multi_file),\
  73. (cat, (d.directory), /),\
  74. (cat, (d.directory), /, (d.name))"
  75. method.insert = d.session_file, simple, "cat=(session.path), (d.hash), .torrent"
  76. ## Watch directories (add more as you like, but use unique schedule names)
  77. ## Add torrent
  78. schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent")))
  79. ## Add & download straight away
  80. schedule2 = watch_start, 10, 10, ((load.start_verbose, (cat, (cfg.watch), "start/*.torrent")))
  81. ## Run the rTorrent process as a daemon in the background
  82. ## (and control via XMLRPC sockets)
  83. #system.daemon.set = true
  84. #network.scgi.open_local = (cat,(session.path),rpc.socket)
  85. #execute.nothrow = chmod,770,(cat,(session.path),rpc.socket)
  86. ## Logging:
  87. ## Levels = critical error warn notice info debug
  88. ## Groups = connection_* dht_* peer_* rpc_* storage_* thread_* tracker_* torrent_*
  89. print = (cat, "Logging to ", (cfg.logfile))
  90. log.open_file = "log", (cfg.logfile)
  91. log.add_output = "info", "log"
  92. #log.add_output = "tracker_debug", "log"
  93. ui.torrent_list.layout.set = "compact"
  94. ### END of rtorrent.rc ###