后端搭建起来

This commit is contained in:
aixianling
2022-12-30 16:03:32 +08:00
parent cf5f60a049
commit b8ac23dcfd
8 changed files with 85 additions and 38 deletions

View File

@@ -1,19 +1,28 @@
exports.keys = "kubbo and flora"
exports.mysql = {
client: {
// host
host: '192.168.1.87',
// 端口号
port: '3306',
// 用户名
user: 'root',
// 密码
password: 'Cwy@2019',
// 数据库名
database: 'dvcp_oms_dev',
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,
},
// 是否加载到 app 上,默认开启
app: true,
// 是否加载到 agent 上,默认关闭
agent: false,
security: {
csrf: {
enable: false
}
}
}