-
Notifications
You must be signed in to change notification settings - Fork 0
/
eldeeb.config.js
38 lines (37 loc) · 1.55 KB
/
eldeeb.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
const mode = process.env.NODE_ENV || 'development' //npm dev, check package.json->scripts
export default {
root: 'D:/Downloads/__projects/NodeJs/almogtama3.com/',
db: {
user: 'xxyyzz2050',
pass: process.env.dbPass || 'Xx159753@@',
host:
mode == 'development'
? 'cluster-test-kuwit.gcp.mongodb.net'
: 'almogtama3-gbdqa.gcp.mongodb.net',
srv: true,
db: mode == 'development' ? 'test' : 'database',
debug: mode == 'development' ? true : false,
models: '../../db/schema', //related to eldeeb/lib/db-mongoDB
ext: 'js'
},
/* Old connection
{
// uri:"mongodb://xxyyzz2050:Xxyyzz2050%40%[email protected]:27017,cluster-test-shard-00-01-kuwit.gcp.mongodb.net:27017,cluster-test-shard-00-02-kuwit.gcp.mongodb.net:27017/test?ssl=true&replicaSet=Cluster-test-shard-0&authSource=admin&retryWrites=true",
user: 'xxyyzz2050', //use uri OR user,pass,host
pass: 'Xx159753@@',
host:
'cluster-test-shard-00-00-kuwit.gcp.mongodb.net:27017,cluster-test-shard-00-01-kuwit.gcp.mongodb.net:27017,cluster-test-shard-00-02-kuwit.gcp.mongodb.net:27017',
db: mode == 'development' ? 'test' : 'database',
debug: false,
ssl: true,
replicaSet: 'Cluster-test-shard-0',
authSource: 'admin',
retryWrites: true,
models: './models', //related to eldeeb/lib/db-mongoDB
ext: 'js'
//,debug:false,keepAlive: 1, connectTimeoutMS: 30000,
},
*/
github: ['[email protected]', 'Xx159753@@', '$key']
}
//_id: 5be92fb487e94116ac606ffe