-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
31 lines (28 loc) · 833 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
const env = process.env.NODE_ENV || 'dev';
const bd_password = '';
const jwt_password = '';
const config = () => {
switch (env) {
case 'dev':
return {
bd_url: `mongodb+srv://admin:${bd_password}@clusterapi-wsstp.mongodb.net/test?retryWrites=true&w=majority`,
jwt_pass: jwt_password,
jwt_expires_in: '3d'
};
case 'hml':
return {
bd_url:
'mongodb+srv://admin:<password>@clusterapi-wsstp.mongodb.net/test?retryWrites=true&w=majority',
jwt_pass: jwt_password,
jwt_expires_in: '5d'
};
case 'prod':
return {
bd_url:
'mongodb+srv://admin:<password>@clusterapi-wsstp.mongodb.net/test?retryWrites=true&w=majority',
jwt_pass: jwt_password,
jwt_expires_in: '7d'
};
}
};
module.exports = config();