aboutsummaryrefslogtreecommitdiff
path: root/files/rtorrent.rc
blob: b7c8832b440f655addd2ee9066b426cc7d4cf69a (plain)
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
### rtorrent settings #######################################################

#
# OPTIONAL settings (check these)
#

# general
throttle.global_up.max_rate.set_kb = 12000
throttle.global_down.max_rate.set_kb = 12000
throttle.max_uploads.set = 100
throttle.max_uploads.global.set = 250
network.http.max_open.set = 99
network.max_open_files.set = 600
network.max_open_sockets.set = 300
protocol.encryption.set = allow_incoming,try_outgoing,enable_retry
#protocol.encryption.set = require,require_RC4,allow_incoming,try_outgoing,enable_retry
system.umask.set = 0022
keys.layout.set = qwertz
pieces.hash.on_completion.set = no

# rTorrent 0.8.9 and older only
# default is 2 ms and 5 tries
#hash_interval = 50
#hash_max_tries = 2

# range for listening port
#network.port_range.set = 64000-64042
network.port_range.set = 6881-6999
network.port_random.set = no

# tracker-less torrent support
#dht.mode.set = enable
protocol.pex.set = no
trackers.use_udp.set = no

# peer settings
throttle.min_peers.normal.set = 20
throttle.max_peers.normal.set = 60
throttle.min_peers.seed.set = 30
throttle.max_peers.seed.set = 80

# resource usage
pieces.memory.max.set = 1800M
network.xmlrpc.size_limit.set = 2M


#
# CORE settings (keep these)
#
network.http.capath.set = /etc/ssl/certs
encoding.add = utf8

directory.default.set = /var/cache/media/seeding
session.path.set = /var/cache/torrent/rtorrent/.session
network.scgi.open_local = /var/cache/torrent/rtorrent/.scgi_local
##scgi_port = localhost:5099
log.execute = /var/cache/torrent/rtorrent/log/execute.log

# SCHEDULE: Make SCGI socket group-writable
schedule = scgi_permission,0,0,"execute.nothrow=chmod,g+w,/var/cache/torrent/rtorrent/.scgi_local"

# SCHEDULE: Watch directories (if you use "pyrotorque", you can/should comment out the watches)
#schedule = watch_start_directory,10,10,load.start=/var/cache/torrent/rtorrent/watch/start/*.torrent
#schedule = watch_load_directory,15,20,load.normal=/var/cache/torrent/rtorrent/watch/load/*.torrent
#schedule = untied_closing,30,30,close_untied=

# SCHEDULE: Watch disk space
schedule = low_diskspace,15,60,close_low_diskspace=1000M

# EVENTS: Logging (don't log "opened", or you get swamped at startup)
method.set_key = event.download.inserted_new,log,"print=\"LOADED \",$d.name=,\" [\",$convert.date=$system.time=,\"]\""
method.set_key = event.download.finished,log,"print=\"COMPLETED \",$d.name=,\" [R=\",$d.ratio=,\", \",$convert.date=$system.time=,\"]\""
method.set_key = event.download.closed,log,"print=\"CLOSED \",$d.name=,\" [R=\",$d.ratio=,\", \",$convert.date=$system.time=,\"]\""

# UI/VIEW: Sort "seeding" by ratio
view.sort_current = seeding,greater=d.ratio= 


#
# PyroScope SETTINGS
#

# Set "pyro.extended" to 1 to activate rTorrent-PS features!
method.insert = pyro.extended, value|const, 1

# Set "pyro.bin_dir" to the "bin" directory where you installed the pyrocore tools!
# Make sure you end it with a "/"; if this is left empty, then the shell's path is searched.
method.insert = pyro.bin_dir, string|const, ~/bin/

# Remove the ".default" if you want to change something (else your 
# changes get over-written on update).
method.insert = pyro.rc_dialect, string|const|simple, "execute.capture=bash,-c,\"test $1 = 0.8.6 && echo -n 0.8.6 || echo -n 0.8.9\",dialect,$system.client_version="
#method.insert = pyro.rtorrent_rc, string|const|private, "$cat=~/.pyroscope/rtorrent-,\"$pyro.rc_dialect=\",.rc.default"
method.insert = pyro.rtorrent_rc, string|const|private, "$cat=~/.pyroscope/rtorrent-,\"$pyro.rc_dialect=\",.rc"
import = $pyro.rtorrent_rc=

# TORQUE: Daemon watchdog schedule
# Must be activated by touching the "~/.pyroscope/run/pyrotorque" file!
# Set the second argument to "-v" or "-q" to change log verbosity.
schedule = pyro_watchdog,30,300,"pyro.watchdog=~/.pyroscope,"

# CURL options
branch=pyro.extended=,"network.http.ssl_verify_peer.set=0"
branch=pyro.extended=,"network.http.dns_cache_timeout.set=25"

# The following view changes rely on additional fields available with PyroScope added,
# but are a matter of preference, so you may comment them out

# UI/VIEW: Sort incomplete by date added
view.sort_current = incomplete,greater=d.custom=tm_loaded
view.sort_new     = incomplete,greater=d.custom=tm_loaded

# UI/VIEW: Show recently completed top-most in "main"
view.sort_current = main,greater=d.custom=tm_completed
view.filter_on = main,event.download.finished

# UI/VIEW: Show active and incomplete torrents (in view #0) and update every 20 seconds
#   Items are grouped into complete, incomplete, and queued, in that order (rT-PS only).
#   Within each group, they're sorted by download and then upload speed.
branch=pyro.extended=,false=,"view.sort_current = active,greater=d.up.rate="
branch=pyro.extended=,"view.sort_current = active,\"compare=----,d.is_open=,d.complete=,d.down.rate=,d.up.rate=\""
schedule = filter_active,12,20,"view.filter = active,\"or={d.up.rate=,d.down.rate=,not=$d.complete=}\" ;view.sort=active"


#
# LOCAL settings
#

# Add anything of your own here...

# Transfer rates
upload_rate = 25
download_rate = 50

# Encryption
#encryption = require,require_RC4,allow_incoming,try_outgoing,enable_retry
encryption = allow_incoming, try_outgoing, enable_retry

# Collapsible display
#schedule = bind_collapse,0,0,"ui.bind_key=download_list,*,view.collapsed.toggle="
view.collapsed.toggle = main

# Show traffic of the last hour
network.history.depth.set = 112
schedule = network_history_sampling,1,32, network.history.sample=
method.insert = network.history.auto_scale.toggle, simple|private, "branch=network.history.auto_scale=,\"network.history.auto_scale.set=0\",\"network.history.auto_scale.set=1\""
method.insert = network.history.auto_scale.ui_toggle, simple|private, "network.history.auto_scale.toggle= ;network.history.refresh="
branch=pyro.extended=,"schedule = bind_auto_scale,0,0,\"ui.bind_key=download_list,=,network.history.auto_scale.ui_toggle=\""

# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
dht = on

# UDP port to use for DHT.
#
dht_port = 6881

### END rtorrent.rc #########################################################