Browse Source

自定义统计大屏不鉴权

dev
CODE 1 year ago
parent
commit
6a8e3765c8
  1. 14
      api/config.js

14
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,

Loading…
Cancel
Save