production.js
1.39 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
port: 3572,
entryURL: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx52d72e78b0ecf0f0&redirect_uri=https%3A%2F%2Fwww.51liuliang.cc%2Fnetiou&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect',
baseURL: 'https://www.51liuliang.cc/netiou',
dir: {
dist: 'dist',
static: 'static',
index: 'dist/index.html'
},
db: {
name: 'net_iou_production',
username: 'postgres',
password: 'postgres',
host: '127.0.0.1',
dialect: 'postgres',
port: 5432,
},
session: {
resave: false,
saveUninitialized: true,
cookie: {maxAge: 1000*60*60*24*30 },
redisStore: {host: '127.0.0.1', port: 6379, prefix:'chs-sess'},
secret: 'test'
},
bcrypt: {
saltRounds: 1,
salt: "Last Christmas"
},
jwt: {
key: 'Since their first mission in June 2010, rockets from the Falcon 9 family have been launched 51 times.',
},
wx: {
appId: 'wx52d72e78b0ecf0f0',
appSecret: '7f5b1dd442a6c172586480d9e69c9fee'
},
sms: {
url: 'http://api.chanzor.com/send',
account: '98abaa',
password: 'd91ye3g50u'
},
idOCR: {
url: 'https://recognition.image.myqcloud.com/ocr/idcard',
appid: 10123991,
bucket: 'id-decetive',
SecretId: 'AKIDAAwToxEWv50fT28OM6ctwkKgmcBVfNvE',
SecretKey: 'A4i6E6i5CWcS3OTGn45qLaZI3d081e3D'
},
img: {
idImg: '/data/idImg',
iouImg: '/data/iouImg'
}
}