config.default.js
869 Bytes
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
'use strict';
module.exports = appInfo => {
const config = exports = {};
// use for cookie sign key, should change to your own and keep security
config.keys = appInfo.name + '_1523942873522_3307';
// add your config here
config.middleware = [];
config.mysql = {
// 单数据库信息配置
client: {
// host
host: '10.10.1.49',
// 端口号
port: '3306',
// 用户名
user: 'sferp',
// 密码
password: 'sh_sfkj@0915',
// 数据库名
database: 'sferp',
},
// 是否加载到 app 上,默认开启
app: true,
// 是否加载到 agent 上,默认关闭
agent: false,
};
config.security = {
domainWhiteList: [ '10.10.1.123:8080' ],
csrf: false,
};
config.cors = {
allowMethods: 'GET,POST,PUT',
credentials: true,
};
return config;
};