|
@ -21,6 +21,9 @@ args.option('axyPumpProject', '安心云泵站项目信息'); |
|
|
|
|
|
|
|
|
args.option('yingshiKey', '萤石 KEY') |
|
|
args.option('yingshiKey', '萤石 KEY') |
|
|
args.option('yingshiSecret', '萤石 SECRET') |
|
|
args.option('yingshiSecret', '萤石 SECRET') |
|
|
|
|
|
args.option('kubesphereUserName', 'k8s用户名') |
|
|
|
|
|
args.option('kubespherePassword', 'k8s密码') |
|
|
|
|
|
args.option('statistics', 'statistics接口地址') |
|
|
|
|
|
|
|
|
const flags = args.parse(process.argv); |
|
|
const flags = args.parse(process.argv); |
|
|
|
|
|
|
|
@ -34,6 +37,9 @@ const QINIU_SK = process.env.ANXINCLOUD_QINIU_SECRETKEY || flags.qnsk; |
|
|
|
|
|
|
|
|
const BACKUPS_URL = process.env.BACKUPS_URL || flags.backups; |
|
|
const BACKUPS_URL = process.env.BACKUPS_URL || flags.backups; |
|
|
const KUBESPHERE_URL = process.env.KUBESPHERE_URL || flags.kubesphere; |
|
|
const KUBESPHERE_URL = process.env.KUBESPHERE_URL || flags.kubesphere; |
|
|
|
|
|
const KUBESPHERE_USERNAME = process.env.KUBESPHERE_URL || flags.kubesphereUserName; |
|
|
|
|
|
const KUBESPHERE_PASSWORD = process.env.KUBESPHERE_URL || flags.kubespherePassword; |
|
|
|
|
|
const AXY_STATISTICS = process.env.AXY_STATISTICS || flags.statistics; |
|
|
const DATABASE_CONFIG = process.env.DATABASE_HOST || flags.dbconfig;//同步数据库配置
|
|
|
const DATABASE_CONFIG = process.env.DATABASE_HOST || flags.dbconfig;//同步数据库配置
|
|
|
const WATER_URL = process.env.WATER_URL || flags.water; |
|
|
const WATER_URL = process.env.WATER_URL || flags.water; |
|
|
const WORKSAFETY_URL = process.env.WORKSAFETY_URL || flags.worksafety; |
|
|
const WORKSAFETY_URL = process.env.WORKSAFETY_URL || flags.worksafety; |
|
@ -98,9 +104,12 @@ const product = { |
|
|
}, |
|
|
}, |
|
|
backupsUrl: BACKUPS_URL, |
|
|
backupsUrl: BACKUPS_URL, |
|
|
k8s: KUBESPHERE_URL, |
|
|
k8s: KUBESPHERE_URL, |
|
|
|
|
|
k8sUserName: KUBESPHERE_USERNAME, |
|
|
|
|
|
k8sPassword: KUBESPHERE_PASSWORD, |
|
|
dbConfig: DATABASE_CONFIG, |
|
|
dbConfig: DATABASE_CONFIG, |
|
|
tfApi: THIRD_FIRECONTROL, |
|
|
tfApi: THIRD_FIRECONTROL, |
|
|
axyPumpProject: AXY_PUMP_PROJECT, |
|
|
axyPumpProject: AXY_PUMP_PROJECT, |
|
|
|
|
|
statistics: AXY_STATISTICS, |
|
|
pssaRequest: [{// name 会作为一个 request 出现在 ctx.app.fs
|
|
|
pssaRequest: [{// name 会作为一个 request 出现在 ctx.app.fs
|
|
|
name: 'anxinyun', |
|
|
name: 'anxinyun', |
|
|
root: AXY_API_URL |
|
|
root: AXY_API_URL |
|
|