监控:配置按照环境变量区分

This commit is contained in:
luying
2022-01-06 13:50:01 +08:00
parent 322939be77
commit cbe440eefe
8 changed files with 93 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ export default (appInfo: EggAppInfo) => {
pw: 'zyz_monitor_2021'
};
exports.xtransit = {
config.xtransit = {
server: 'ws://127.0.0.1:9092',
appId: 3,
appSecret: 'a48ad5ca44e2d02cbd7f4c0326fa3101'

View File

@@ -17,10 +17,10 @@ export default (appInfo: EggAppInfo) => {
pw: 'PANl3Vr2eozkq4N2'
};
exports.xtransit = {
server: 'ws://127.0.0.1:9092',
appId: 3,
appSecret: 'a48ad5ca44e2d02cbd7f4c0326fa3101'
config.xtransit = {
server: 'ws://172.16.4.107:9092',
appId: 2,
appSecret: '19f8d6272fbba17294513610ba67f21b'
};
// the return config will combines to EggAppConfig

View File

@@ -16,8 +16,9 @@ const plugin: EggPlugin = {
// package: 'egg-alinode',
// },
xtransit: {
enable: false,
enable: true,
package: 'egg-xtransit',
env: ['sq1']
}
};