import { EggAppConfig , EggAppInfo , PowerPartial } from 'egg' ; export type DefaultConfig = PowerPartial < EggAppConfig & BizConfig > ; export interface BizConfig { sourceUrl : string ; } export default ( appInfo ) => { const config = { } as PowerPartial < EggAppConfig > & BizConfig ; config . keys = appInfo . name + '_1528804995511_9134' ; config . middleware = [ ] ; /**
     * dubbo config
     *
     * application 当前的应用标识
     * registry 注册中心地址
     *   support registry mode
     *     1、 zookeeper  'localhost:2181,localhost:2182,localhost:2183'
     *     2、 nacos      'nacos://localhost:2181'
     *       nacos 注册地址要以 nacos:// 开头
     *
     */ config . dubbo = { application : { name : 'node-egg-bff' } , registry : 'localhost:2181,localhost:2182,localhost:2183' , } ; return config ; } ;