-
Notifications
You must be signed in to change notification settings - Fork 51
/
config.txt
160 lines (109 loc) · 4.62 KB
/
config.txt
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
###
### REDbot Configuration
###
# All directory paths are relative to the PWD that REDbot is run from.
[redbot]
## Basic configuration
# Output language (not working yet; see #169).
lang = en_US.UTF-8
# Output character set. No real reason to change from UTF-8.
charset = utf-8
# Show errors in the browser; boolean.
debug = False
## Test configuration
# How many seconds to allow a check to run for.
max_runtime = 60
# Limit on how many links to check in a page when descending
max_links = 100
# Whether to make links in the HTML content view clickable (starting new tests). This is
# expensive, and may cause redbot_daemon to be unresponsive.
content_links = no
# The largest response content sample size. Default 8K; set to zero to disable limit.
# Note that making this too large can cause issues.
max_sample_size = 8192
## Web server configuration
# Hostname to listen on. Comment out to listen on all interfaces.
host = localhost
# Port to listen on.
port = 8000
# The URL where the Web user interface is rooted.
ui_uri = https://redbot.org/
# Directory in the filesystem where other assets should be layered into the URI root.
# Comment out to disable.
# extra_base_dir = /files
# Directory whose contents will be appended to pages; Comment out to disable.
# Supported file types:
# - .html': shown only on start page, after input block
# - '.js': javascript block (with script tag surrounding), included on every page view.
# extra_dir = /path/to/extra/stuff
# URI root for static assets (absolute or relative, but no trailing '/').
static_root = static
# The name of a HTTP request header that will contain the client's IP address. Used for
# logging, rate limiting, and CAPTCHA identification.
# DO NOT SET this unless you trust the value of this header (e.g., it is under control of
# your infrastructure). Comment out to disable.
# remote_ip_header = X-Forwarded-For
## Saved Tests
# Where to keep files when users `save` them. Note that files will be automatically
# deleted from this directory, so it needs to be only used for REDbot.
# Comment out to disable saving.
save_dir = /tmp/redbot/
# How long to store things when users save them, in days.
save_days = 30
# How long to store things when users haven't saved them, in minutes. Used for eg
# conneg requests.
no_save_mins = 20
# How often to garbage collect save files, in minutes. Only occurs when save_dir
# is uncommented.
gc_mins = 2
## Web abuse controls
# Whether to allow access to localhost, RFC1918 and other "local" services. Note that enabling
# this can be a security risk.
enable_local_access = False
# Captcha provider; must be one of:
# - hcaptcha -- see: https://www.hcaptcha.com
# - turnstile -- see: https://www.cloudflare.com/products/turnstile/
# Comment out to disable.
# captcha_provider = turnstile
# Captcha sitekey.
# captcha_sitekey = 10000000-ffff-ffff-ffff-000000000001
# Captcha secret.
# captcha_secret = 0x0000000000000000000000000000000000000000
# How long to remember that someone is human before running a captcha again, in seconds.
# Longer periods are less annoying, but more vulnerable to token reuse.
token_lifetime = 15
# Log when total traffic is bigger than this (in kbytes), so we can catch abuse
# Comment out to disable; 0 to log all.
log_traffic = 8192
# Domains which we reject requests for when they're in the referer. Whitespace-separated.
referer_spam_domains = www.youtube.com
## Web test rate limiting
# Number of tests to allow per period, per client. Comment out to disable.
limit_client_tests = 180
# Period of time those requests are allowed within, in hours.
limit_client_period = 1
# Number of tests per client to allow in a 15-second window.
instant_limit = 3
# Number of tests to allow per period, per origin. Comment out to disable.
limit_origin_tests = 180
# Period of time those requests are allowed within, in hours.
limit_origin_period = 1
# Number of tests to allow per period, per Slack user. Comment out to disable.
limit_slack_user_tests = 60
# Period of time they are allowed within, in hours.
limit_slack_user_period = 1
# Number of tests to allow per period, per Slack team. Comment out to disable.
limit_slack_team_tests = 300
# Period of time those requests are allowed within, in hours.
limit_slack_team_period = 1
## Slack integration
#
# See https://redbot.org/slack/
#
# You MUST set ui_uri above to your instance's URI to make Slack integration work properly.
# Signing secret from Slack. Comment out to disable Slack integration.
# slack_signing_secret =
# Client secret from Slack. Only necessary if you're publishing an app.
# slack_client_secret =
# Client ID. Only necessary if you're publishing an app.
# slack_client_id =