forked from natsukagami/themis-web-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.js
More file actions
39 lines (39 loc) · 1.24 KB
/
config.sample.js
File metadata and controls
39 lines (39 loc) · 1.24 KB
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
module.exports = {
contestName: 'Trình chấm Themis',
port: 80,
sessionSecret: 'gisjWikvZWHMiQzNmTV7',
allowScoreboard: true,
registration: {
allow: false,
recaptcha: {
enable: true,
siteKey: '',
secretKey: ''
}
},
contestMode: {
enabled: false,
// Month is 0 based (0 = January)
startTime: new Date(2015, 12, 31, 23, 59, 59),
endTime: new Date(2016, 12, 31, 23, 59, 59),
// Hide judge logs until contest ends
hideLogs: true
},
// Config the rate-limiter
rateLimiter: {
// every limiter has 4 parameters:
// - free tries: The number of request that can be assigned within the time window without any wait.
// - min wait: The minimum wait time between 2 limited requests. (in seconds)
// - max wait: The maximum wait time between 2 limited requests.
// - life time: The lifetime of a logged request.
// For each site, set the rate limiter value to an array of 4 numbers to activathe the rate limiter,
// or set to null to disable it.
// For example, the previously used config:
// submit: [30, 2 * 60 * 60, 2 * 60 * 60, 60 * 60],
// register: [30, 25 * 60 * 60, 25 * 60 * 60, 24 * 60 * 60],
// logRequest: [2400, 2 * 60 * 60, 2 * 60 * 60, 60 * 60]
submit: null,
register: null,
logRequest: null
}
};