Commit 0b0af4ae authored by 郭志伟's avatar 郭志伟

build(apollo): 调整apollo配置

parent 6ac7987d
......@@ -11,5 +11,9 @@ export default {
qiniuUpHost: `${protocol}//up-z0.qiniup.com`,
// kdspHost: 'https://kdsp-api-vcc3.liangkebang.net',
kdspHost: 'https://talos-vcc3.liangkebang.net',
yxmTenantId: 560761
yxmTenantId: 560761,
appIdMap: {
560761: 'wxe16bf9293671506c',
560867: 'wxccb8435d68e8c7d6',
},
};
\ No newline at end of file
......@@ -8,7 +8,11 @@ const hostMap = {
opapiHost: `${protocol}//opapi.q-gp.com`,
qiniuUpHost: `${protocol}//up-z0.qiniup.com`,
kdspHost: `${protocol}//talos.q-gp.com`,
yxmTenantId: 560761
yxmTenantId: 560761,
appIdMap: {
560761: 'wxb3e6270e1b1e0bc7',
560867: 'wxbd0bc68b270a1dab',
},
};
if (EASY_ENV_IS_BROWSER) {
......
import { EggAppConfig } from 'egg';
import * as fs from 'fs';
import * as path from 'path';
const { mysql, redis, api, qiniu } = require(path.resolve(__dirname, './apollo.json'));
export default (appInfo: EggAppConfig) => {
const config: any = {};
......@@ -47,5 +48,18 @@ export default (appInfo: EggAppConfig) => {
}
};
config.sequelize = {
dialect: 'mysql',
...mysql.low_code
};
config.redis = {
default: {
keyPrefix: appInfo.name + ':',
},
client: redis
};
config.apollo = { ...api, ...qiniu };
return config;
};
......@@ -22,32 +22,10 @@ export default (appInfo: EggAppConfig) => {
injectCss: false
};
exports.sequelize = {
dialect: 'mysql',
username: 'qa',
password: 'qatest',
host: '172.17.5.48',
port: 31393,
database: 'low_code',
};
exports.redis = {
default: {
keyPrefix: appInfo.name + ':',
},
client: {
port: 31543, // Redis port
host: '172.17.5.14', // Redis host
password: '',
db: 0
}
};
exports.webpack = {
webpackConfigList: getWebpackConfig(),
browser: 'http://localhost:7002/editor/list'
};
exports.apollo = { yxmTenantId: 560761 };
return exports;
};
......@@ -6,6 +6,7 @@
*/
import { Application, EggAppConfig } from 'egg';
import * as path from 'path';
export default (appInfo: EggAppConfig) => {
const exports: any = {};
......@@ -14,28 +15,5 @@ export default (appInfo: EggAppConfig) => {
dir: '/home/quant_group/logs',
};
exports.sequelize = {
dialect: 'mysql',
username: 'low_code_w',
password: 'B2pRHuGMLBNybuKp',
host: 'low-code-db.quantgroups.com',
port: 3306,
database: 'low_code',
};
exports.redis = {
default: {
keyPrefix: appInfo.name + ':',
},
client: {
port: 6379, // Redis port
host: 'front-redis.quantgroups.com', // Redis host
password: 'ln4^ESq80j4nrTMZ',
db: 0
}
};
exports.apollo = { yxmTenantId: 560761 };
return exports;
};
......@@ -2,25 +2,12 @@
const path = require('path');
import { Application, EggAppConfig } from 'egg';
const { mysql, redis, api, qiniu } = require(path.resolve(__dirname, './apollo.json'));
export default (appInfo: EggAppConfig) => {
const exports: any = {};
exports.logger = {
dir: '/home/quant_group/logs',
};
exports.sequelize = {
dialect: 'mysql',
...mysql.low_code
};
exports.redis = {
default: {
keyPrefix: appInfo.name + ':',
},
client: redis
};
exports.apollo = { ...api, ...qiniu };
return exports;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment