-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.js
45 lines (39 loc) · 966 Bytes
/
config.js
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
module.exports = config = {
/** @type {number}
* @description default port to localhost
* @default 5000
*/
port: 5000,
/** @type {number}
* @description max number of requests
* @default 100
*/
rateLimitMax: 100,
/** @type {number}
* @description time between requests
* @default 24 hours
* @example 24 * 60 * 60 * 1000 // 24 hours
*/
rateLimitEach: 24 * 60 * 60 * 1000,
/** @type {number}
* @description time between cache updates
* @default 5 seconds
* @example 5 * 1000 // 5 seconds
*/
cacheEach: 5,
/** @type {number}
* @description timeout for fetch requests
* @default 15000 // 15 seconds
*/
fetchTimeout: 15000,
/** @type {string}
* @description timeout for express timeout middleware
* @default 30s // 30 seconds
*/
expressTimeout: '30s',
/** @type {string}
* @description limit for express.json middleware
* @default 10kb
*/
expressJsonLimit: '10kb',
};