12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import { MidwayConfig } from '@midwayjs/core';
- const ip = '127.0.0.1';
- const project = 'ball';
- const mongodb = 'count_match_v1';
- export default {
- // use for cookie sign key, should change to your own and keep security
- keys: '1686030936692_986',
- koa: {
- globalPrefix: `/${project}/v1/api`,
- },
- swagger: {
- swaggerPath: `/dev/${project}/v1/doc`,
- },
- mongoose: {
- dataSource: {
- default: {
- uri: `mongodb://${ip}:27017/${mongodb}`,
- options: {
- user: 'admin',
- pass: 'admin',
- authSource: 'admin',
- useNewUrlParser: true,
- },
- entities: ['./entity'],
- },
- },
- },
- redis: {
- client: {
- port: 6379, // Redis port
- host: '127.0.0.1', // Redis host
- password: '123456',
- db: 4,
- },
- },
- axios: {
- clients: {},
- },
- export: {
- root_path: 'D:\\temp',
- export_path: 'D:\\temp\\export',
- export_dir: 'export',
- patentInfo_dir: 'patentInfo',
- domain: 'http://broadcast.waityou24.cn',
- },
- } as MidwayConfig;
|