-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
39 lines (38 loc) · 1.02 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
const path = require('path')
module.exports = {
app: {
port : 3333, //端口
testPort : 3334 //测试端口,一样将不能同时执行
},
//数据库信息
db: {
host : '127.0.0.1',
port : 27017, //不填则默认27017端口mongodb
database :'beimen'
},
// redis
redis: {
host :'127.0.0.1',
port : 7480
},
//上传路径或者本地
upload: {
qn_access: {
accessKey :'01oKerp-WnA-ou7DANLaWuSHdKuhk2xInjJ40BxR',
secretKey :'ivC4BvoVljlkNmR4HdTQV84jSuXna97Kz8siWoSU',
bucket :'beimenwenhua',
origin :'http://ounyawd00.bkt.clouddn.com',
uploadURL :'http://up-z1.qiniu.com'
},
},
websetting :{
path :'web.setting.json', //webstting的位置。于app的位置
key :'redis_websetting' //存在redis里的key值
},
//超级管理员的信息
admin :{
username : 'admin',
password : 'admin',
email : '[email protected]'
}
}