master
2022-04-20 09f5baff0d14f593b52920b9b76d46fedfb753a8
src/config/config.default.ts
@@ -1,6 +1,7 @@
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>;
@@ -46,7 +47,7 @@
      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 = {
@@ -73,7 +74,8 @@
    // 文件上传
    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;