module.exports = { keys: "kubbo&flora", middleware: ['errorHandler'], errorHandler: {match: '/api'}, mysql: { client: { // host host: '127.0.0.1', // 端口号 port: '3306', // 用户名 user: 'root', // 密码 password: '123456', // 数据库名 database: 'buy_lite', }, // 是否加载到 app 上,默认开启 app: true, // 是否加载到 agent 上,默认关闭 agent: false, }, security: { csrf: { enable: false, ignoreJSON: true, } }, //登录鉴权 jwt: { secret: "c799f2d92de34b97" }, //跨域设置 cors: { origin: '*', allowMethods: 'GET,HEAD,POST', }, validate: { convert: true }, multipart:{ mode: 'file' } }