-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
36 lines (36 loc) · 910 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
34
35
36
module.exports = {
//邮件配置
email: {
service: 'QQ',
user: 'qingaoti@qq.com',
pass: 'guxblzkyjrlrbhfb',
},
// 数据库配置
MongoSettings: {
mongodb: "mongodb://10.5.24.141:27017/demo",
options: {
keepAlive: 1,
//socketTimeoutMS: 5000,
//connectTimeoutMS: 5000
poolSize: 10,
promiseLibrary: require('q').Promise
}
},
// es配置
ElasticsearchSettings: {
// hosts: [
// 'http://172.16.200.171:9200',
// 'http://172.16.200.172:9200',
// 'http://172.16.200.173:9200',
// ],
hosts: ['http://192.168.1.148:9210'],
requestTimeout: 1000 * 60 * 10,
keepAlive: true
},
// 缓存配置
RedisSettings: {
host: "127.0.0.1",
port: 6379,
expires: 60 * 60,
},
};