-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault-config.js
More file actions
57 lines (56 loc) · 1.36 KB
/
default-config.js
File metadata and controls
57 lines (56 loc) · 1.36 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
/**
* default config file
* @type {Object}
*/
const config = {
nodeStatic: {
root: './',
options: {
indexFile: 'index.html',
gzip: true // NOTE: it requires actual `.gz` files, won't compress it on its own
},
customPages: false
},
// our web server options
server: {
port: 3001,
// ExperimentalWarning: The http2 module is an experimental API.
http2: false,
ssl: {
enabled: false,
httpListener: 3000,
// enter path to real certificate relative to project root
// otherwise use self-signed for testing
/**
* these are some bogus certificates for testing
* create self-signed localhost testing certificate that expires in 10 years:
* openssl req -x509 -newkey rsa:2048 -nodes -sha256 -days 3650 -subj //CN=localhost -keyout localhost-test-privkey.pem -out localhost-test-cert.pem
*/
key: '',
cert: ''
}
},
// basic auth credentials
auth: {
enabled: true,
name: process.env.NAME,
pass: process.env.PASS,
realm: process.env.REALM || 'Private'
},
// logger file options
logger: {
use: true,
filename: 'access.log',
folder: 'server-logs',
logRotation: {
use: false,
options: {
interval: '1d',
path: 'server-logs'
}
},
type: 'combined',
options: {}
}
}
export default config;