forked from pebblecode/wfh-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
33 lines (32 loc) · 932 Bytes
/
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';
var getEnv = require('getenv');
var path = require('path');
var statuses = require('./constants/statuses.js');
module.exports = {
allowDefaults: false,
defaultStatus: statuses.OutOfOffice,
onlyAllowMessageCommand: true,
rolloverExemptStatuses: [statuses.Vacation, statuses.Sick],
port: getEnv.int('PORT', 3000),
couchDb:{
username: getEnv('COUCHDB_USERNAME', ''),
password: getEnv('COUCHDB_PASSWORD', ''),
url: getEnv('COUCHDB_URL', 'http://127.0.0.1'),
port: getEnv.int('COUCHDB_PORT', 5984),
dbName: getEnv('COUCHDB_NAME', 'wfh')
},
segment:{
writeKey: getEnv('SEGMENT_IO_WRITE_KEY', ''),
},
slack:{
token: getEnv('SLACK_TOKEN', ''),
webhooks:{
requestTokens: getEnv('SLACK_WEBHOOK_TOKENS', '').split(',')
}
},
auth:{
admin:{
password: getEnv('ADMIN_PASSWORD', '$2a$10$oIeQ626Z5yIU7IsvC.1t2.JaegXE1Jn9FaLxF1SfA/jXgQNFah/Wu')
}
}
};