From 6a8e3765c80efd3a24ccb14303429a0345a57bf1 Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Tue, 5 Sep 2023 18:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E4=B8=8D=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/config.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/api/config.js b/api/config.js index 3c6fc92..835ddf4 100644 --- a/api/config.js +++ b/api/config.js @@ -103,7 +103,7 @@ const QINIU_SK = process.env.ANXINCLOUD_QINIU_SECRETKEY || flags.qnsk; // clickHouse const CLICKHOUST_URL = process.env.CLICKHOUST_URL || flags.clickHouseUrl const CLICKHOUST_PORT = process.env.CLICKHOUST_PORT || flags.clickHousePort -const CLICKHOUST_USER = process.env.CLICKHOUST_USER || flags.clickHouseUser +const CLICKHOUST_USER = process.env.CLICKHOUST_USER || flags.clickHouseUser const CLICKHOUST_PASSWORD = process.env.CLICKHOUST_PASSWORD || flags.clickHousePassword const CLICKHOUST_ANXINCLOUD = process.env.CLICKHOUST_ANXINCLOUD || flags.clickHouseAnxincloud const CLICKHOUST_PEP_EMIS = process.env.CLICKHOUST_PEP_EMIS || flags.clickHousePepEmis @@ -172,6 +172,7 @@ const product = { opts: { dev, exclude: [ + // "*", { p: '/attachments/:p', o: 'POST' }, { p: '/alarm/application/inspection', o: 'POST' }, { p: '/project/app_list', o: 'GET' }, @@ -181,6 +182,13 @@ const product = { { p: '/page/performance/api', o: 'POST' }, //页面加载性能入库 { p: '/alarm/video/added_log', o: 'POST' }, { p: '/basic-data/workflow/single/allProject', o: 'GET' }, + + { p: '/weather/realtime', o: 'GET' }, + // 自定义分大屏 + { p: '/project/group/statistic', o: 'GET' }, + { p: '/project/group/statistic/online', o: 'GET' }, + { p: '/project/group/statistic/alarm', o: 'GET' }, + { p: '/project/group/list', o: 'GET' }, ], // 不做认证的路由,也可以使用 exclude: ["*"] 跳过所有路由 apMergeDeVeAnxinProjectId: AP_MERGE_DEVE_ANXINPROJECT_ID, anxinCloud: { @@ -213,11 +221,11 @@ const product = { enabled: true, host: 'smtp.exmail.qq.com', port: 465, - sender: { + sender: [{ name: '运维服务', address: 'fsiot@free-sun.com.cn', password: 'Fs2689' - } + }] }, caiyun: { key: CAIYUN_KEY,