-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.js
More file actions
36 lines (35 loc) · 681 Bytes
/
config.js
File metadata and controls
36 lines (35 loc) · 681 Bytes
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
const singleDay = 1000 * 60 * 60 * 24
const mongoUri = process.env.MONGOLAB_URI || 'mongodb://localhost:27017/rtr'
module.exports = {
static: {
maxage: singleDay,
gzip: true
},
koa: {
port: process.env.PORT || 3000
},
mongoose: {
url: mongoUri
},
session: {
url: mongoUri,
collection: 'sessions'
},
agendaOptions: {
db: {
address: mongoUri,
collection: 'agendaJobs'
}
},
cookieMaxAge: singleDay * 30,
compress: {
filter: function (contentType) {
return /text/i.test(contentType)
},
threshold: 2048,
flush: require('zlib').Z_SYNC_FLUSH
},
slogger: {
minimal: process.env.QUIET
}
}