Files
buy-lite/server/config/config.default.js

30 lines
632 B
JavaScript
Raw Normal View History

2022-12-30 16:03:32 +08:00
module.exports = {
keys: "kubbo&flora",
middleware: ['errorHandler'],
errorHandler: {match: '/api'},
mysql: {
client: {
// host
2022-12-31 12:08:13 +08:00
host: '127.0.0.1',
2022-12-30 16:03:32 +08:00
// 端口号
port: '3306',
// 用户名
user: 'root',
// 密码
2022-12-31 12:08:13 +08:00
password: '123456',
2022-12-30 16:03:32 +08:00
// 数据库名
2022-12-31 13:23:08 +08:00
database: 'buy_lite',
2022-12-30 16:03:32 +08:00
},
// 是否加载到 app 上,默认开启
app: true,
// 是否加载到 agent 上,默认关闭
agent: false,
2022-12-30 11:53:48 +08:00
},
2022-12-30 16:03:32 +08:00
security: {
csrf: {
2022-12-30 16:34:57 +08:00
queryName: "token",
2022-12-31 12:08:13 +08:00
ignore: ctx => ctx.headers.passport === "c799f2d92de34b97"//md5编码:kubbo&flora
2022-12-30 16:03:32 +08:00
}
}
2022-12-30 11:53:48 +08:00
}