From 3fe2d863d957a31218400f3201f0091b506b4454 Mon Sep 17 00:00:00 2001 From: wenlele Date: Mon, 5 Dec 2022 14:04:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/config.js b/web/config.js index cc4aa5b..ed385c1 100644 --- a/web/config.js +++ b/web/config.js @@ -12,7 +12,7 @@ dev && console.log('\x1B[33m%s\x1b[0m', '请遵循并及时更新 readme.md, args.option(['p', 'port'], '启动端口'); args.option(['u', 'api-url'], 'webapi的URL'); args.option('apiHrUrl', 'webapi的URL 外网可访问'); -args.option(['d', 'domain'], 'web domain'); +args.option(['d', 'domain'], '项企的顶级域名 domain'); args.option('webPepUrl', '企业管理 web'); @@ -43,6 +43,8 @@ const ANXINCLOUD_PM_SERVICES = process.env.ANXINCLOUD_PM_SERVICES || flags.pmrs; if ( !API_URL || !API_DC_URL + || !WEB_PEP_URL + || !FS_REPORT_DOMAIN || !ANXINCLOUD_QINIU_AK || !ANXINCLOUD_QINIU_SK || !ANXINCLOUD_QINIU_BUCKET_RESOURCE || !ANXINCLOUD_QINIU_DOMAIN_QNDMN_RESOURCE ) { console.log('缺少启动参数,异常退出'); From d30bb5a2c6038b968045d56f0d7feec4b63beca5 Mon Sep 17 00:00:00 2001 From: wenlele Date: Mon, 5 Dec 2022 14:11:43 +0800 Subject: [PATCH 2/2] FS_PEP_DOMAIN --- web/config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/config.js b/web/config.js index ed385c1..76d3bdf 100644 --- a/web/config.js +++ b/web/config.js @@ -28,7 +28,7 @@ const flags = args.parse(process.argv); const API_URL = process.env.API_URL || flags.apiUrl; const API_DC_URL = process.env.API_DC_URL || flags.apiHrUrl; -const FS_REPORT_DOMAIN = process.FS_REPORT_DOMAIN || flags.domain; +const FS_PEP_DOMAIN = process.FS_REPORT_DOMAIN || flags.domain; const WEB_PEP_URL = process.env.WEB_PEP_URL || flags.webPepUrl; // 七牛 @@ -44,7 +44,7 @@ if ( !API_URL || !API_DC_URL || !WEB_PEP_URL - || !FS_REPORT_DOMAIN + || !FS_PEP_DOMAIN || !ANXINCLOUD_QINIU_AK || !ANXINCLOUD_QINIU_SK || !ANXINCLOUD_QINIU_BUCKET_RESOURCE || !ANXINCLOUD_QINIU_DOMAIN_QNDMN_RESOURCE ) { console.log('缺少启动参数,异常退出'); @@ -85,7 +85,7 @@ const product = { service: { url: ANXINCLOUD_PM_SERVICES }, - domain: FS_REPORT_DOMAIN, + domain: FS_PEP_DOMAIN, webPepUrl: WEB_PEP_URL } }, {