| | |
| | | import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg'; |
| | | import { CoolConfig } from '@cool-midway/core'; |
| | | import * as path from 'path'; |
| | | import { CoolFileConfig, MODETYPE } from '@cool-midway/file'; |
| | | |
| | | export type DefaultConfig = PowerPartial<EggAppConfig>; |
| | | |
| | |
| | | enable: false, |
| | | ignoreJSON: true, |
| | | }, |
| | | domainWhiteList: ['http://localhost:9100', 'http://192.168.1.4:9100'], |
| | | domainWhiteList: ['http://localhost:9100', 'http://192.168.1.4:9100', 'http://112.74.77.127:9100'], |
| | | }; |
| | | |
| | | config.cors = { |
| | |
| | | // 文件上传 |
| | | file: { |
| | | // 文件路径前缀 本地上传模式下 有效 |
| | | domain: 'http://127.0.0.1:8001', |
| | | // domain: 'http://127.0.0.1:8001', |
| | | domain: 'http://112.74.77.127:9100/hn', |
| | | }, |
| | | } as CoolConfig; |
| | | |