-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.js
39 lines (39 loc) · 1.2 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
module.exports = {
db: {
user: process.env.DB_USER,
database: process.env.DB_DATABASE,
password: process.env.DB_PASSWORD,
host: process.env.DB_HOST,
port: process.env.DB_PORT,
max: parseInt(process.env.DB_MAX_CLIENT), // max number of clients in the pool
idleTimeoutMillis: parseInt(process.env.DB_IDLE_TIMEOUT), // how long a client is allowed to remain idle before being closed
},
redis: {
host: process.env.REDIS_HOST,
port: parseInt(process.env.REDIS_PORT),
passord: process.env.REDIS_PASSWORD
},
cache: {
resetPasswordExpiration: parseInt(process.env.CACHE_RESET_PASSWORD_EXPIRATION)
},
server: {
port: parseInt(process.env.SERVER_PORT),
frontEndDomain: process.env.FRONT_END_DOMAIN
},
accessTokenJwt: {
secret: process.env.ACCESS_TOKEN_JWT_SECRET,
options: {
expiresIn: process.env.ACCESS_TOKEN_JWT_EXPIRATION
}
},
aws: {
bucket: process.env.AWS_BUCKET
},
mailgun: {
apiKey: process.env.MAILGUN_API_KEY,
domain: process.env.MAILGUN_DOMAIN
},
email: {
from: process.env.EMAIL_FROM
}
};