-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.toml
37 lines (29 loc) · 1.29 KB
/
config.toml
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
[server]
host = "127.0.0.1" # Server host
port = 42135 # Server port
[authorization]
api_token = "ch4ng3this" # generate with "redactedhook generate-apitoken"
[indexer_keys]
#red_apikey = "" # generate in user settings, needs torrent and user privileges
#ops_apikey = "" # generate in user settings, needs torrent and user privileges
[userid]
#red_user_id = 0 # from /user.php?id=xxx
#ops_user_id = 0 # from /user.php?id=xxx
[ratio]
#minratio = 0.6 # reject releases if you are below this ratio
[sizecheck]
#minsize = "100MB" # minimum size for checking, e.g., "10MB"
#maxsize = "500MB" # maximum size for checking, e.g., "1GB"
[uploaders]
#uploaders = "greatest-uploader" # comma separated list of uploaders to allow
#mode = "whitelist" # whitelist or blacklist
[record_labels]
#record_labels = "" # comma separated list of record labels to filter for
[logs]
loglevel = "trace" # trace, debug, info
logtofile = false # Set to true to enable logging to a file
logfilepath = "redactedhook.log" # Path to the log file
maxsize = 10 # Max file size in MB
maxbackups = 3 # Max number of old log files to keep
maxage = 28 # Max age in days to keep a log file
compress = false # Whether to compress old log files