-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.py
68 lines (59 loc) · 1.33 KB
/
config.py
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
# Place all your globals here
# ``Base'' URL for your HTTP website
# This URL should not end with a trailing slash
# doing so would break redirect behaviour.
BASE_URL = '/torrent'
# HTTP URL for the static files
STATIC_URL = BASE_URL + '/static'
USE_OWN_HTTPD = False
# Default downloads blocksize
FILE_BLOCK_SIZE = 4096
# Default background
BACKGROUND_IMAGE = 'cat.jpg'
USE_AUTH = True
ENABLE_API = False
CACHE_TIMEOUT=10
torrent_users = {
'test' : {
'targets' : [],
'background-image' : 'space1.png',
'password' : 'test'
}
}
## Exemplary SCGI setup using unix socket
#rtorrent_config = {
# 'sheeva' : {
# 'scgi' : {
# 'unix-socket' : '/tmp/rtorrent.sock'
# }
# }
#}
#
## Exemplary SCGI setup using scgi over network
#rtorrent_config = {
# 'sheeva' : {
# 'scgi' : {
# 'host' : '192.168.1.70',
# 'port' : 80
# }
# }
#}
# Exemplary HTTP setup using remote XMLRPC server. (SCGI is handled by the HTTPD
# in this case)
rtorrent_config = {
'sheeva' : {
'http' : {
'host' : '192.168.1.70',
'port' : 80,
'url' : '/RPC2',
}
}
# ,
# 'sheevareborn' : {
# 'http' : {
# 'host' : '42.42.42.42',
# 'port' : 80,
# 'url' : '/RPC2',
# }
# }
}