-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjsreport.config.js
54 lines (52 loc) · 1.97 KB
/
jsreport.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
46
47
48
49
50
51
52
53
54
const schemaProperties = {
hostname: { type: 'string' },
httpPort: { type: 'number' },
httpsPort: { type: 'number' },
appPath: {
type: 'string',
description: 'optionally set application path, if you run application on http://appdomain.com/reporting then set "/reporting" to `appPath`. The default behavior is that it is assumed that jsreport is running behind a proxy, so you need to do url url rewrite /reporting -> / to make it work correctly, See `mountOnAppPath` when there is no proxy + url rewrite involved in your setup.'
},
mountOnAppPath: {
type: 'boolean',
default: false,
description: 'use this option along with `appPath`. it specifies if all jsreport routes should be available with appPath as prefix, therefore making `appPath` the new root url of application'
},
certificate: {
type: 'object',
properties: {
key: { type: 'string' },
cert: { type: 'string' }
}
}
}
module.exports = {
'name': 'express',
'main': 'lib/reporter.express.js',
'optionsSchema': {
...schemaProperties,
extensions: {
express: {
type: 'object',
properties: {
...schemaProperties,
start: {
type: 'boolean',
default: true,
description: 'specifies if the server should be started automatically during jsreport initialization, if false you should start the server manually by using jsreport.express.start() after jsreport is initialized'
},
trustProxy: { type: 'boolean', default: true },
inputRequestLimit: { type: 'string', default: '50mb' },
exposeHttpHeaders: {
type: 'boolean',
default: false,
description: 'specifies if incoming request http headers should be exposed as `req.context.http.headers` inside jsreport scripts'
},
renderTimeout: { type: 'number', default: 1200000 },
responseHeaders: {
type: 'object'
}
}
}
}
}
}