-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-config.js
33 lines (31 loc) · 1.1 KB
/
example-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
'use strict'
let fs = require('fs')
module.exports = {
// Capped collection size (in bytes)
// Set as false to not use capped collection
logSize: 1024 * 1024 * 1024,
// Interval to generate internal statistics about log sink server usage
// Set to 0 to disable
reportInterval: 3600e3,
// Mongo connection uri
mongoUri: 'mongodb://localhost:27017/logSink',
// Socket options for tls.createServer and https.createServer
// If set to an empty object `{}`, net.createServer and http.createServer are used
// It is recommended to use secure connection. If you choose to use plain text (like http),
// make sure no one can peek your network, because everything (including credentials) will
// be sent in the clear!
socket: {
// DO NOT USE THE EXAMPLE KEY/CERT since they were made public, ok?
key: fs.readFileSync('./keys/example-key.pem'),
cert: fs.readFileSync('./keys/example-cert.pem')
},
// Port for the main API
// `null` disables it
port: 8018,
// Port for the main API over WebSocket
// `null` disables it
wsPort: 8019,
// Port for the simple HTTP API
// Set as null to disable it
httpPort: 8020
}