1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import { MidwayConfig } from '@midwayjs/core';
- const ip = '127.0.0.1';
- const project = 'material';
- const mongodb = 'material_v1';
- export default {
- // use for cookie sign key, should change to your own and keep security
- keys: '1672292154640_5493',
- koa: {
- globalPrefix: `/${project}/v1/api`,
- },
- swagger: {
- swaggerPath: `/${project}/v1/api/doc`,
- },
- mongoose: {
- dataSource: {
- default: {
- uri: `mongodb://${ip}:27017/${mongodb}`,
- options: {
- user: 'admin',
- pass: 'admin',
- authSource: 'admin',
- useNewUrlParser: true,
- },
- entities: ['./entity'],
- },
- },
- },
- axios: {
- clients: {
- file: {
- baseURL: 'http://broadcast.waityou24.cn',
- //表明返回服务器返回的数据类型
- responseType: 'arraybuffer',
- headers: {
- 'Content-Type': 'application/json; application/octet-stream',
- },
- },
- },
- },
- export: {
- root_path: 'D:\\free\\workspace\\server\\service-file\\upload',
- file_type: 'material',
- },
- wechatSetting: {
- // 耗材
- materialApp: {
- appid: 'wx23c71bee5876d1b9',
- secret: 'f8099ebd037df28dc9357ef585ab58ff',
- mchid: '1505364491',
- v3key: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9',
- },
- },
- } as MidwayConfig;
|