Browse Source

feat:提交配置文件

dev
zhaobing’ 1 year ago
parent
commit
351c0018ea
  1. 17
      api/config.js

17
api/config.js

@ -147,6 +147,17 @@ const ES_PLATFORM_NAME = process.env.ES_PLATFORM_NAME || flags.esPlatformName
const ES_CONTINUITY_NAME = process.env.ES_CONTINUITY_NAME || flags.esContinuityName const ES_CONTINUITY_NAME = process.env.ES_CONTINUITY_NAME || flags.esContinuityName
|| 'anxincloud' || 'anxincloud'
|| 'anxinyun'; || 'anxinyun';
const ES_ANXINYUN_RAWS = process.env.ES_ANXINYUN_RAWS || flags.esAnxinyunRaws
|| 'anxinyun'
|| 'anxincloud'
const ES_ANXINYUN__VBRAWS = process.env.ES_ANXINYUN__VBRAWS || flags.esAnxinyunVbRaws
|| 'anxinyun'
|| 'anxincloud'
const ES_ANXINCLOUD_ALARMS = process.env.ES_ANXINCLOUD_ALARMS || flags.esAnxinCloudAlarms
|| 'anxincloud'
|| 'anxinyun';
const ANXINCLOUD_ES_NODES_REST = process.env.ANXINCLOUD_ES_NODES_REST || flags.es; const ANXINCLOUD_ES_NODES_REST = process.env.ANXINCLOUD_ES_NODES_REST || flags.es;
// //business_key // //business_key
// const BUSINESS_KEY=process.env.BUSINESS_KEY||['160','161'] // const BUSINESS_KEY=process.env.BUSINESS_KEY||['160','161']
@ -376,17 +387,17 @@ const product = {
}, },
rawData: { rawData: {
rootURL: ANXINCLOUD_ES_NODES_REST.split(','), rootURL: ANXINCLOUD_ES_NODES_REST.split(','),
index: `${PLATFORM_NAME}_raws`, index: `${ES_ANXINYUN_RAWS}_raws`,
type: flags.esType ? flags.esType : '_doc' type: flags.esType ? flags.esType : '_doc'
}, },
vbRawData: { vbRawData: {
rootURL: ANXINCLOUD_ES_NODES_REST.split(','), rootURL: ANXINCLOUD_ES_NODES_REST.split(','),
index: `${PLATFORM_NAME}_vbraws`, index: `${ES_ANXINYUN__VBRAWS}_vbraws`,
type: flags.esType ? flags.esType : '_doc' type: flags.esType ? flags.esType : '_doc'
}, },
alarm: { alarm: {
rootURL: ANXINCLOUD_ES_NODES_REST.split(','), rootURL: ANXINCLOUD_ES_NODES_REST.split(','),
index: `${PLATFORM_NAME}_alarms`, index: `${ES_ANXINCLOUD_ALARMS}_alarms`,
type: flags.esType ? flags.esType : '_doc' type: flags.esType ? flags.esType : '_doc'
}, },
} }

Loading…
Cancel
Save