import { MidwayConfig } from '@midwayjs/core'; /**elasticsearch ip */ const esIp = '10.120.114.6' /**elasticsearch 端口 */ const esPort= '9200' /**elasticsearch 用户名 */ const esUserName = 'elastic' /**elasticsearch 密码 */ const esPassword = 'NAjqFz_7tS2DkdpU7p*x' export default { // use for cookie sign key, should change to your own and keep security keys: '1697684406848_4978', jwt: { secret: 'Ziyouyanfa!@#', expiresIn: 3600, // 3600 }, koa: { port: 9701, globalPrefix: '/cxyy/es', queryParseMode: 'extended', }, swagger: { swaggerPath: '/doc/api', }, elasticsearch: { node: `http://${esIp}:${esPort}`, auth: { username: esUserName, password: esPassword, }, }, } as MidwayConfig;