123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- /* eslint valid-jsdoc: "off" */
- 'use strict';
- /**
- * @param {Egg.EggAppInfo} appInfo app info
- */
- module.exports = () => {
- const config = exports = {};
- const userConfig = {
- chargingCycleApi: // 生产
- 'http://10.7.116.247:60080/test/fawiovconditionquery/iov/analysis/driving-behavior/charging-cycle',
- rbacApi: // 生产
- 'http://10.7.116.247:60080/test/faw-ops-portal/op/portal/basic/userInfoFind/account/loginByToken',
- travelApi: // 生产
- 'http://10.7.116.247:60080/test/fawiovconditionquery/iov/vhl/locationsList',
- };
- config.mongoose = {
- clients: {
- etlDB: { // 原始数据库
- url: 'mongodb://faw-etl:faw-etl123@10.120.9.133:27042,10.120.9.134:27042,10.120.9.135:27042/faw-etl?replicaSet=rs', // 生产
- options: {
- socketTimeoutMS: 900000,
- useUnifiedTopology: true,
- poolSize: 40,
- },
- },
- etlLocalDB: { // 本地清洗后的数据库
- url: 'mongodb://faw-etl:faw-etl123@10.120.9.133:27042,10.120.9.134:27042,10.120.9.135:27042/faw-etl-local3?replicaSet=rs', // 生产
- options: {
- socketTimeoutMS: 900000,
- useUnifiedTopology: true,
- poolSize: 40,
- },
- },
- etlAutoDB: {
- url: 'mongodb://faw:fawl123@10.120.8.56:27041,10.120.8.19:27041,10.120.8.38:27041/faw?replicaSet=rs', // 生产
- options: {
- socketTimeoutMS: 900000,
- useUnifiedTopology: true,
- poolSize: 40,
- },
- },
- },
- };
- config.redis = {
- client: {
- cluster: true,
- nodes: [
- {
- host: '10.120.8.70',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.64',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.68',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.71',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.67',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.75',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.66',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.74',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.69',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.104',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.73',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- {
- host: '10.120.8.65',
- port: 16377,
- family: 'tsp',
- password: 'tspRedis123',
- db: 0,
- },
- ],
- },
- };// 生产
- // const userConfig = { // uat
- // chargingCycleApi:
- // 'http://10.6.181.34:60080/fawtsp/fawiovconditionquery/iov/analysis/driving-behavior/charging-cycle',
- // rbacApi: // uat
- // 'http://10.6.181.34:60080/fawtsp/faw-ops-portal/op/portal/basic/userInfoFind/account/loginByToken',
- // travelApi: // uat
- // 'http://10.6.181.34:60080/fawtsp/fawiovconditionquery/iov/vhl/locationsList',
- // };
- //
- // config.mongoose = {
- // clients: {
- // etlDB: { // 原始数据库
- // 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,
- // },
- // },
- // etlAutoDB: { // 自动化测试数据库
- // url: 'mongodb://admin:mongo123@uat.dbaas.private:27028/faw', // 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 {
- ...config,
- ...userConfig,
- };
- };
|