From 4e72f53a3451569e13dc0470306af7afe89a651d Mon Sep 17 00:00:00 2001 From: zhouxin Date: Fri, 25 Nov 2022 12:20:05 +0800 Subject: [PATCH] =?UTF-8?q?(*)=E4=BF=AE=E6=94=B9=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- web/config.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5d94b89..8c382b5 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,8 @@ CLICKHOUST_PEP_EMIS //clickhouse 的 emis 库名 ## web 启动环境变量 ### 企业管理 ``` -API_EMIS_URL //api +API_URL //api +API_DC_URL //外网可访问的api地址 ``` ### 七牛 ``` diff --git a/web/config.js b/web/config.js index 34562d5..076ab7c 100644 --- a/web/config.js +++ b/web/config.js @@ -23,7 +23,7 @@ args.option('pmrs', 'pmReportService'); const flags = args.parse(process.argv); const API_URL = process.env.API_URL || flags.apiUrl; -const API_HR_URL = process.env.API_HR_URL || flags.apiHrUrl; +const API_DC_URL = process.env.API_DC_URL || flags.apiHrUrl; // 七牛 const ANXINCLOUD_QINIU_AK = process.env.ANXINCLOUD_QINIU_ACCESSKEY || flags.qnak; @@ -36,7 +36,7 @@ const ANXINCLOUD_PM_SERVICES = process.env.ANXINCLOUD_PM_SERVICES || flags.pmrs; if ( !API_URL - || !API_HR_URL + || !API_DC_URL || !ANXINCLOUD_QINIU_AK || !ANXINCLOUD_QINIU_SK || !ANXINCLOUD_QINIU_BUCKET_RESOURCE || !ANXINCLOUD_QINIU_DOMAIN_QNDMN_RESOURCE ) { console.log('缺少启动参数,异常退出'); @@ -68,7 +68,7 @@ const product = { }, { entry: require('./routes').entry, opts: { - apiUrl: API_HR_URL, + apiUrl: API_DC_URL, staticRoot: './client', qiniu: { fetchUrl: '/_file-server',