Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. # This is an example resource file for rTorrent. Copy to
  2. # ~/.rtorrent.rc and enable/modify the options as needed. Remember to
  3. # uncomment the options you wish to enable.
  4.  
  5. # Maximum and minimum number of peers to connect to per torrent.
  6. min_peers = <%= node["rtorrent"]["min_peers"] %>
  7. max_peers = <%= node["rtorrent"]["max_peers"] %>
  8.  
  9. # Same as above but for seeding completed torrents (-1 = same as downloading)
  10. min_peers_seed = <%= node["rtorrent"]["min_peers_seed"] %>
  11. max_peers_seed = <%= node["rtorrent"]["max_peers_seed"] %>
  12.  
  13. # Maximum number of simultanious uploads per torrent.
  14. max_uploads = <%= node["rtorrent"]["max_uploads"] %>
  15.  
  16. # Maximum number of concurrent uploads
  17. max_uploads_global = <%= node["rtorrent"]["max_uploads_global"] %>
  18.  
  19. # Maximum number of concurrent downloads
  20. max_downloads_global = <%= node["rtorrent"]["max_downloads_global"] %>
  21.  
  22. # Global upload and download rate in KiB. "0" for unlimited.
  23. download_rate = <%= node["rtorrent"]["download_rate"] %>
  24. upload_rate = <%= node["rtorrent"]["upload_rate"] %>
  25.  
  26. # Default directory to save the downloaded torrents.
  27. directory = <%= node["rtorrent"]["dl_dir"] %>
  28.  
  29. # Default session directory. Make sure you don't run multiple instance
  30. # of rtorrent using the same session directory. Perhaps using a
  31. # relative path?
  32. session = <%= node["rtorrent"]["session_dir"] %>
  33.  
  34. # Watch a directory for new torrents, and stop those that have been
  35. # deleted.
  36. schedule = watch_directory,5,5,load_start=<%= node["rtorrent"]["watch_dir"] %>/*.torrent
  37. schedule = untied_directory,5,5,stop_untied=
  38.  
  39. # Close torrents when diskspace is low.
  40. schedule = low_diskspace,5,60,close_low_diskspace=<%= node["rtorrent"]["low_disk_space_threshold"] %>
  41.  
  42. # Stop torrents when reaching upload ratio in percent,
  43. # when also reaching total upload in bytes, or when
  44. # reaching final upload ratio in percent.
  45. # example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
  46. #schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
  47.  
  48. # The ip address reported to the tracker.
  49. #ip = 127.0.0.1
  50. #ip = rakshasa.no
  51.  
  52. # The ip address the listening socket and outgoing connections is
  53. # bound to.
  54. #bind = 127.0.0.1
  55. #bind = rakshasa.no
  56.  
  57. # Port range to use for listening.
  58. port_range = <%= node["rtorrent"]["port_range"] %>
  59.  
  60. # Start opening ports at a random position within the port range.
  61. port_random = <%= node["rtorrent"]["port_random"] %>
  62.  
  63. # Check hash for finished torrents. Might be usefull until the bug is
  64. # fixed that causes lack of diskspace not to be properly reported.
  65. check_hash = <%= node["rtorrent"]["check_hash"] %>
  66.  
  67. # Set whetever the client should try to connect to UDP trackers.
  68. use_udp_trackers = <%= node["rtorrent"]["use_udp_trackers"] %>
  69.  
  70. # Alternative calls to bind and ip that should handle dynamic ip's.
  71. #schedule = ip_tick,0,1800,ip=rakshasa
  72. #schedule = bind_tick,0,1800,bind=rakshasa
  73.  
  74. # Encryption options, set to none (default) or any combination of the following:
  75. # allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
  76. #
  77. # The example value allows incoming encrypted connections, starts unencrypted
  78. # outgoing connections but retries with encryption if they fail, preferring
  79. # plaintext to RC4 encryption after the encrypted handshake
  80. #
  81. encryption = <%= node["rtorrent"]["encryption"] %>
  82.  
  83. # Enable DHT support for trackerless torrents or when all trackers are down.
  84. # May be set to "disable" (completely disable DHT), "off" (do not start DHT),
  85. # "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
  86. # The default is "off". For DHT to work, a session directory must be defined.
  87. #
  88. dht = <%= node["rtorrent"]["dht"] %>
  89.  
  90. # UDP port to use for DHT.
  91. #
  92. # dht_port = 6881
  93.  
  94. # Enable peer exchange (for torrents not marked private)
  95. #
  96. peer_exchange = <%= node["rtorrent"]["peer_exchange"] %>
  97.  
  98. # Set the numwant field sent to the tracker, which indicates how many peers we want. A negative value disables this feature.
  99. tracker_numwant = <%= node["rtorrent"]["tracker_numwant"] %>
  100.  
  101. #
  102. # Do not modify the following parameters unless you know what you're doing.
  103. #
  104.  
  105. # Hash read-ahead controls how many MB to request the kernel to read
  106. # ahead. If the value is too low the disk may not be fully utilized,
  107. # while if too high the kernel might not be able to keep the read
  108. # pages in memory thus end up trashing.
  109. #hash_read_ahead = 10
  110.  
  111. # Interval between attempts to check the hash, in milliseconds.
  112. #hash_interval = 100
  113.  
  114. # Number of attempts to check the hash while using the mincore status,
  115. # before forcing. Overworked systems might need lower values to get a
  116. # decent hash checking rate.
  117. #hash_max_tries = 10
  118.  
  119. scgi_port = 127.0.0.1:50<%= node["rtorrent"]["index"] %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement