1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
| ############################################################################# # A minimal rTorrent configuration that provides the basic features #############################################################################
# Some default configs are commented out by #, you can override them to fit your needs # Lines commented out by ## are merely examples (NOT default)
# It is recommended to extend upon this default config file. For example: # override only some configs via command line: -o network.port_range.set=6881-6881 # or, on top of custom config: import = /etc/rtorrent/rtorrent.rc
# Some additional values and commands method.insert = system.startup_time, value|const, (system.time)
# rTorrent runtime directory (cfg.basedir) [default: "$HOME/.local/share/rtorrent"] method.insert = cfg.basedir, private|const|string, (cat,(fs.homedir),"/rtorrent/")
# Default download directory (cfg.download) [default: "$(cfg.basedir)/download"] #method.insert = cfg.download, private|const|string, (cat,(cfg.basedir),"download/") method.insert = cfg.download, private|const|string, (cat,"/home/data/下载/")
# Log directory (cfg.logs) [default: "$(cfg.basedir)/log"] method.insert = cfg.logs, private|const|string, (cat,(cfg.basedir),"log/") method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log")
# Torrent session directory (cfg.session) [default: "$(cfg.basedir)/.session"] method.insert = cfg.session, private|const|string, (cat,(cfg.basedir),".session/")
# Watch (drop to add) directories (cfg.watch) [default: "$(cfg.basedir)/watch"] method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/")
# Create directories fs.mkdir.recursive = (cat,(cfg.basedir))
fs.mkdir = (cat,(cfg.download)) fs.mkdir = (cat,(cfg.logs)) fs.mkdir = (cat,(cfg.session))
fs.mkdir = (cat,(cfg.watch)) fs.mkdir = (cat,(cfg.watch),"/load") fs.mkdir = (cat,(cfg.watch),"/start")
# Drop to "$(cfg.watch)/load" to add torrent schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent")))
# Drop to "$(cfg.watch)/start" to add torrent and start downloading schedule2 = watch_start, 10, 10, ((load.start_verbose, (cat, (cfg.watch), "start/*.torrent")))
# Listening port for incoming peer traffic network.port_range.set = 51418-51418 network.port_random.set = no
# Distributed Hash Table and Peer EXchange # Enable tracker-less torrents but vulnerable to passive sniffing # DHT and PEX are always disabled for private torrents #dht.mode.set = auto #dht.port.set = 51418 #protocol.pex.set = yes dht.mode.set = disable protocol.pex.set = no
# DHT nodes for bootstrapping dht.add_bootstrap = dht.transmissionbt.com:6881 dht.add_bootstrap = dht.libtorrent.org:25401
# UDP tracker support #trackers.use_udp.set = yes trackers.use_udp.set = no
# Peer settings throttle.max_downloads.set = 100 throttle.max_uploads.set = 100 throttle.max_downloads.global.set = 300 throttle.max_uploads.global.set = 300 throttle.min_peers.normal.set = 100 throttle.max_peers.normal.set = 200 throttle.min_peers.seed.set = 100 throttle.max_peers.seed.set = 0 trackers.numwant.set = 100
#protocol.encryption.set = allow_incoming,try_outgoing,enable_retry
# Limits for file handle resources, this is optimized for # an `ulimit` of 1024 (a common default). You MUST leave # a ceiling of handles reserved for rTorrent's internal needs! network.max_open_files.set = 10240 network.max_open_sockets.set = 500
# Send and receive buffer size for socket. Disabled by default (`0`), this means the default is used by OS # (you have to modify the system wide settings!) (`send_buffer_size`, `receive_buffer_size`) # Increasing buffer sizes may help reduce disk seeking, connection polling as more data is buffered each time # the socket is written to. It will result higher memory usage (not visible in rtorrent process!). network.receive_buffer.size.set = 4M network.send_buffer.size.set = 12M
# Memory resource usage (increase if you have a large number of items loaded, # and/or the available resources to spend) pieces.memory.max.set = 1800M #network.xmlrpc.size_limit.set = 16M
# Preallocate disk space for contents of a torrent # # Useful for reducing fragmentation, improving the performance # and I/O patterns of future read operations. However, with this # enabled, preallocated files will occupy the full size even if # they are not completed. # # If you choose to allocate space for the whole torrent at once, # rTorrent will create all files and allocate the space when the # torrent is started. rTorrent will NOT delete the file and free # the allocated space, if you later mark a file as DO NOT DOWNLOAD. # # 0 = disabled # 1 = enabled, allocate when a file is opened for write # 2 = enabled, allocate the space for the whole torrent at once system.file.allocate.set = 2
# Basic operational settings session.path.set = (cat, (cfg.session)) directory.default.set = (cat, (cfg.download)) log.execute = (cat, (cfg.logs), "execute.log") ##log.xmlrpc = (cat, (cfg.logs), "xmlrpc.log")
# Other operational settings encoding.add = utf8 system.umask.set = 0027 system.cwd.set = (directory.default) #schedule2 = low_diskspace, 5, 60, ((close_low_diskspace, 500M)) #pieces.hash.on_completion.set = no pieces.hash.on_completion.set = no ##view.sort_current = seeding, greater=d.ratio= ##keys.layout.set = qwerty
# HTTP and SSL network.http.max_open.set = 50 network.http.dns_cache_timeout.set = 25
# Path to the CA bundle. By default, rTorrent tries to detect from: # $RTORRENT_CA_BUNDLE (highest priority) # $CURL_CA_BUNDLE # $SSL_CERT_FILE # /etc/ssl/certs/ca-certificates.crt # /etc/pki/tls/certs/ca-bundle.crt # /usr/share/ssl/certs/ca-bundle.crt # /usr/local/share/certs/ca-root-nss.crt # /etc/ssl/cert.pem (lowest priority) ##network.http.cacert.set = /etc/ssl/certs/ca-certificates.crt
# Path to the certificate directory to verify the peer. The certificates # must be in PEM format, and the directory must have been processed using # the c_rehash utility supplied with openssl. # # For advanced users only, generally you should use network.http.cacert.set # to specify path to the bundle of certificates. ##network.http.capath.set = "/etc/ssl/certs"
#network.http.ssl_verify_peer.set = 1 #network.http.ssl_verify_host.set = 1
# Run the rTorrent process as a daemon in the background #system.daemon.set = false
# XML-RPC interface network.scgi.open_local = (cat,(cfg.basedir),rtorrent.sock)
# Logging: # Levels = critical error warn notice info debug # Groups = connection_* dht_* peer_* rpc_* storage_* thread_* tracker_* torrent_* print = (cat, "Logging to ", (cfg.logfile)) log.open_file = "log", (cfg.logfile) log.add_output = "info", "log" ##log.add_output = "tracker_debug", "log"
### END of rtorrent.rc ###
|