File: debtorrent-tracker.conf

package info (click to toggle)
debtorrent 0.1.9
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,452 kB
  • ctags: 1,183
  • sloc: python: 13,526; sh: 274; makefile: 51
file content (436 lines) | stat: -rw-r--r-- 10,242 bytes parent folder | download | duplicates (2)
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
###############################################################################
#       D E B T O R R E N T   T R A C K E R   C O N F I G U R A T I O N
###############################################################################
#
# This is a Windows-style INI file for configuring the DebTorrent tracker.
#
# Values that are strings are written surrounded by quotes, and the decoding
# routine automatically strips any quotes from the values. Booleans are 
# written as integers, with 0 being false, anything else is true. Decimal
# numbers are read in as floats. Anything other than strings, integers, and 
# floats may have unpredictable results. Lines beginning with a '#' are
# considered comments and are ignored, as are blank lines. There are no 
# sections, all configuration variables are global.
#
# This file should be placed in /etc/debtorrent
#

###############################################################################
#                              L O C A T I O N S
###############################################################################
#
# Cache Directory
#
# The directory to use to get/store cache files. If left blank then a
# .DebTorrent directory in the user's home directory will be used.
#

# cache_dir = ""

#
# Save State Interval
#
# The number of seconds between saving the current state to a file. The state
# file will be placed in the cache directory and used in case of a crash or
# restart to load the previous state.
#

# save_state_interval = 300

#
# Log Directory
#
# The directory to write the output logs to. If left blank, the cache
# directory will be used.
#

# log_dir = ""

#
# Log Level
#
# The log level to write output logs at. The possible values are:
#
#         50 -- Critical
#         40 -- Error
#         30 -- Warn (default)
#         20 -- Info
#         10 -- Debug
#

# log_level = 20

###############################################################################
#                             C O N N E C T I O N S
###############################################################################
#
# Port
#
# The port to listen for requests on.
#

# port = 6969

#
# Bind
#
# A comma-separated list of IPs and hostnames to bind to listen on locally.
# Leaving this blank will cause it to listen on all IPs and hostnames.
#

# bind = ""

#
# IPv6 Enabled
#
# Allow the client to connect to peers via IPv6.
#

# ipv6_enabled = 0

#
# IPv6 Binds v4
#
# Whether an IPv6 server socket will also field IPv4 connections.
#

# ipv6_binds_v4 = 0

#
# Socket Timeout
#
# Time to wait between closing sockets which nothing has been received on
# (in seconds).
#

# socket_timeout = 15

#
# Timeout Check Interval
#
# Time to wait between checking if any connections have timed out (in seconds).
#

# timeout_check_interval = 5

###############################################################################
#           A L L O W E D   T O R R E N T S   A N D   P E E R S
###############################################################################
#
# Allowed Dir
#
# Only allow tracking of torrents that are found in this directory.
#

# allowed_dir = ""

#
# Allowed List
#
# Only allow tracking of torrents whose info hashes are listed in this file.
# The hashes should be the 40-byte hex version of the SHA1 hash, with one
# hash per line in the file.
#

# allowed_list = ""

#
# Allowed Controls
#
# Allow special keys in torrents in the allowed_dir to affect tracker access.
# The string with key 'warning message' will be sent to all peers requesting
# data for this torrent. If the torrent has the key 'failure reason', no data
# will be sent to all peers trying to get data for this torrent, and the
# string value will be sent instead as the reason for the failure.
#

# allowed_controls = 0

#
# Allowed IPs
#
# A file containing IPs to only allow connections from. The file must contain
# a single subnet data on each line in the format: 
#
#         aa.bb.cc.dd/len
#
# Leaving this option empty allows all IPs to connect to the APT listener
# (except for those listed in the Banned IPs ranges).
#

# allowed_ips = ""

#
# Banned IPs
#
# A file containing IPs to NOT allow connections from. The file must contain
# IP range data on each line in the format: 
#
#         xxx:xxx:ip1-ip2
#

# banned_ips = ""

#
# Parse Dir Interval
#
# The number of seconds between reloading of Allowed torrents from the
# directoryor list, and the Allowed and Banned IP lists.
#

# parse_dir_interval = 60

###############################################################################
#                       P E E R   R E Q U E S T S
###############################################################################
#
# Compact Required
#
# Whether to only allow peers that accept a compact response. The compact
# response transmits the peers data in a more compact string format instead
# of a bencoded dictionary. IPv6 will not work with the compact response.
#

# compact_reqd = 1

#
# Reannounce Interval
#
# The number of seconds a downloader should wait between reannouncements to
# the tracker.
#

# reannounce_interval = 1800

#
# Response Size
#
# The number of peers to send in an announce response message to a peer.
#

# response_size = 50

#
# NAT Check
#
# How many times to check if a downloader is behind a NAT. Set this to 0 to
# disable NAT checking.
#

# nat_check = 3

#
# Timeout Downloaders Interval
#
# The number of seconds since the last announce before a downloader is expired
# and removed from the list of known peers to send to other downloaders.
#

# timeout_downloaders_interval = 2700

#
# Min Time Between Cache Refreshes
#
# The minimum time in seconds before a peer cache is considered stale and is
# flushed. This refers to the cache of peers that are waiting to be sent to
# the next peer, which is used to speed up the response of the tracker.
#

# min_time_between_cache_refreshes = 600.0

#
# Only Local Override IP
#
# Ignore the 'ip' GET parameter from machines which aren't on local network
# IPs. The possible values are:
#
#         0 -- never
#         1 -- always
#         2 -- ignore if NAT checking is not enabled
#

# only_local_override_ip = 2

#
# Dedicated Seed ID
#
# Set this to the seed ID that dedicated seeds will use when connecting to the
# tracker. This allows the tracker to monitor dedicated seed and flag torrents
# as seeded.
#

# dedicated_seed_id = ""

###############################################################################
#                    N O N - P E E R   R E Q U E S T S
###############################################################################
#
# Show InfoPage
#
# Whether to display an information and statistics page when the tracker's
# root dir is loaded. If enabled, the page can be viewed at:
#
#         http://tracker:port/
#
# where 'port' is the port specified for listening for tracker requests.
#

# show_infopage = 1

#
# InfoPage Redirect
#
# A URL to redirect the info page to. The Show InfoPage option must be set to
# True (1) for this to work.
#

# infopage_redirect = ""

#
# favicon
#
# The file containing x-icon data to return when a browser requests 
# favicon.ico from the tracker.
#

# favicon = ""

#
# Show Names
#
# Whether to display the name of the torrent (as opposed to the info hash) for
# each torrent on the InfoPage. For this to work, the allowed_dir option above
# must be used so that the tracker can extract the names from the torrent
# files in it.
#

# show_names = 1

#
# Allow Get
#
# Add a /file?info_hash=<hash> url that allows users to download the dtorrent
# file from the tracker's info page.
#

# allow_get = 0

#
# Keep Dead
#
# Whether to keep dead torrents after they expire (so they still show up on
# the scrape and web page).
#

# keep_dead = 0

#
# Scrape Allowed
#
# What type of scrape access to allow. The possible values are:
#
#             "none" -- no scrape access is allowed
#         "specific" -- only scrapes for a specific torrent are allowed
#             "full" -- scrapes of all torrent data is allowed
#

# scrape_allowed = "full"

###############################################################################
#                       R E Q U E S T   L O G G I N G
###############################################################################
#
# Min Time Between Log Flushes
#
# The minimum time it must have been since the last log flush to do another 
# one (in seconds).
#

# min_time_between_log_flushes = 3.0

#
# HUP Monitor
#
# Whether to reopen the log file upon receipt of a HUP signal.
#

# hupmonitor = 0

#
# Log NAT Checks
#
# Whether to add entried to the log for NAT check results.
#

# log_nat_checks = 1

###############################################################################
#                          M U L T I - T R A C K E R
###############################################################################
#
# Multi-Tracker Enabled
#
# Whether to enable multitracker operation.
#

# multitracker_enabled = 0

#
# Multi-Tracker Allowed
#
# Whether to allow incoming tracker announces from other trackers. The
# possible values are:
#
#               "none" -- no tracker requests from other trackers are allowed
#         "autodetect" -- only allow if the 'allowed_dir' option is set and
#                         the torrent being requested has an 'announce-list'
#                "all" -- all requests are allowed
#

# multitracker_allowed = "autodetect"

#
# Multi-Tracker Reannounce Interval
#
# The number of seconds between outgoing tracker announces.
#

# multitracker_reannounce_interval = 120

#
# Multi-Tracker Max Peers
#
# The maximum number of peers to get in a tracker announce.
#

# multitracker_maxpeers = 20

#
# Aggregate Forward
#
# If set, all non-multitracker requests will be forwarded to this url with
# this optional password.
#
# Format: <url>[,<password>]
#

# aggregate_forward = ""

#
# Aggregator
#
# Whether to act as a data aggregator rather than a tracker. To enable it, set
# to 1, or to a string <password> which is the incoming password that is
# required for access.
#

# aggregator = 0

#
# HTTP Timeout
#
# The number of seconds to wait before assuming that an HTTP connection to
# another tracker has timed out.
#

# http_timeout = 60