/* eslint valid-jsdoc: "off" */ 'use strict'; /** * @param {Egg.EggAppInfo} appInfo app info */ module.exports = () => { /** * built-in config * @type {Egg.EggAppConfig} **/ const config = exports = {}; const userConfig = {// uat chargingCycleApi: 'http://10.124.20.2:60083/fawtsp/fawiovconditionquery/iov/analysis/driving-behavior/charging-cycle', GDKEY: '61fa7b06efe476b14bfd7cda375d90ff', GDAPI: 'https://restapi.amap.com/v3/geocode/regeo', }; config.mongoose = { clients: { etlDB: {// 原始数据库 // url: 'mongodb://faw-etl:faw-etl123@10.124.8.116:27016/faw-etl', // uat url: 'mongodb://faw-etl:faw-etl123@uat.dbaas.private:27028/faw-etl', // uat options: { useUnifiedTopology: true, poolSize: 40, }, }, etlLocalDB: {// 本地清洗后的数据库 url: 'mongodb://local3:local3%40123@uat.dbaas.private:27028/faw-etl-local3', // uat options: { useUnifiedTopology: true, poolSize: 40, }, }, }, }; config.redis = { client: { cluster: true, nodes: [ { host: '10.124.8.41', port: 16377, family: 'tsp', password: 'tsp2020', db: 0, }, { host: '10.124.8.105', port: 16377, family: 'tsp', password: 'tsp2020', db: 0, }, { host: '10.124.8.75', port: 16377, family: 'tsp', password: 'tsp2020', db: 0, }, { host: '10.124.8.104', port: 16377, family: 'tsp', password: 'tsp2020', db: 0, }, { host: '10.124.8.95', port: 16377, family: 'tsp', password: 'tsp2020', db: 0, }, { host: '10.124.8.63', port: 16377, family: 'tsp', password: 'tsp2020', db: 0, }, ], }, }; return { ...userConfig, ...config, }; };