-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.js
65 lines (57 loc) · 1.26 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
/**
* Port
*/
port: process.env.PORT || 5000,
/**
* Language
* https://www.npmjs.org/package/lingua
*/
lang: 'es-ni',
/**
* Salt
* http://en.wikipedia.org/wiki/Salt_(cryptography)
*/
salt: process.env.SALT || '',
/**
* Template
*/
template: 'default',
/**
* ExpressJS settings
* http://expressjs.com/guide.html
*/
express: {
// use on express.session
secret: process.env.SECRET || '',
key: process.env.KEY || ''
},
/**
* MongoDB Connection
* https://www.mongohq.com/signup/
*/
mongodb: {
host: process.env.MONGODB_HOST || '',
port: process.env.MONGODB_PORT || '',
db: process.env.MONGODB_DATABASE || '',
username: process.env.MONGODB_USERNAME || '',
password: process.env.MONGODB_PASSWORD || ''
},
/**
* SMTP emails
* http://www.gmail.com
*/
smtp: {
user: process.env.SMTP_USERNAME || '',
password: process.env.SMTP_PASSWORD || '',
host: process.env.SMTP_HOST || '',
tls: true
},
/**
* Log
* https://www.getsentry.com/register/
*/
log: {
url: process.env.LOG_URL || ''
}
};