-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
71 lines (69 loc) · 1.39 KB
/
config.js
File metadata and controls
71 lines (69 loc) · 1.39 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
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
/** ****************************************************************************************************
* File: config.js
* Project: LightDB
* @author Nick Soggin <iSkore@users.noreply.github.com> on 30-May-2018
*******************************************************************************************************/
'use strict';
const
{ version, name } = require( './package.json' ),
{ resolve } = require( 'path' );
module.exports = {
name,
version,
cwd: process.cwd(),
silent: process.env.silent,
port: process.env.port,
timeout: 20000,
maximumURISize: 1600,
maximumHeaderSize: 4000,
maximumPayloadSize: 53687091200,
minimumHTTPVersion: 1.1,
speedStandard: 0.08,
api: [
{
route: '/',
method: 'GET',
exec: resolve( './lib/index' )
},
{
route: '/',
method: 'POST',
exec: resolve( './lib/task' )
},
{
route: '/docs',
method: 'ALL',
exec: resolve( './lib/docs' )
},
{
route: '/kill',
method: 'ALL',
exec: resolve( './lib/kill' )
},
{
route: '/ping',
method: 'ALL',
exec: resolve( './lib/ping' )
},
{
route: '/json',
method: 'GET',
exec: resolve( './lib/json' )
},
{
route: '/ui',
method: 'GET',
exec: resolve( './lib/ui' )
},
{
route: '/version',
method: 'ALL',
exec: resolve( './lib/version' )
},
{
route: '*',
method: 'ALL',
exec: resolve( './lib/methodNotAllowed' )
}
]
};