Files
buy-lite/server/config/config.default.js
2022-12-30 16:34:57 +08:00

30 lines
640 B
JavaScript

module.exports = {
keys: "kubbo&flora",
middleware: ['errorHandler'],
errorHandler: {match: '/api'},
mysql: {
client: {
// host
host: '192.168.1.87',
// 端口号
port: '3306',
// 用户名
user: 'root',
// 密码
password: 'Cwy@2019',
// 数据库名
database: 'dvcp_oms_dev',
},
// 是否加载到 app 上,默认开启
app: true,
// 是否加载到 agent 上,默认关闭
agent: false,
},
security: {
csrf: {
queryName: "token",
ignore: ctx => ctx.headers.passport == "c799f2d92de34b97"//md5编码:kubbo&flora
}
}
}