From b27355fe55abf32a32c744d68831643a0e6091e6 Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期一, 03 八月 2026 19:23:04 +0800
Subject: [PATCH] 更新页面标题和内容,优化萤石云接口处理逻辑,增加摄像头告警事件保存功能

---
 src/config/config.default.ts |   40 ++++------------------------------------
 1 files changed, 4 insertions(+), 36 deletions(-)

diff --git a/src/config/config.default.ts b/src/config/config.default.ts
index 1a5876a..03a7323 100644
--- a/src/config/config.default.ts
+++ b/src/config/config.default.ts
@@ -5,20 +5,15 @@
 import { pCachePath, pUploadPath } from '../comm/path';
 import { availablePort } from '../comm/port';
 
-// redis缂撳瓨
-//import { redisStore } from 'cache-manager-ioredis-yet';
-
 export default {
-  // 纭繚姣忎釜椤圭洰鍞竴锛岄」鐩娆″惎鍔ㄤ細鑷姩鐢熸垚
   keys: 'f65bcafd-b72c-4f01-a451-333155097148',
   koa: {
     port: availablePort(8001),
+    rawBody: true,    
   },
-  // 寮�鍚紓姝ヤ笂涓嬫枃绠$悊
   asyncContextManager: {
     enable: true,
   },
-  // 闈欐�佹枃浠堕厤缃�
   staticFile: {
     buffer: true,
     dirs: {
@@ -32,12 +27,11 @@
       },
     },
   },
-  // 鏂囦欢涓婁紶
   upload: {
     fileSize: '200mb',
     whitelist: null,
+    ignore: ['/open/push/yingshiyun', "/open/push/cameraEvent"],    
   },
-  // 缂撳瓨 鍙垏鎹㈡垚鍏朵粬缂撳瓨濡傦細redis http://www.midwayjs.org/docs/extensions/caching
   cacheManager: {
     clients: {
       default: {
@@ -49,45 +43,19 @@
       },
     },
   },
-  /*
-  cacheManager: {
-     clients: {
-       default: {
-         store: redisStore,
-         options: {
-           port: 6379,
-           host: '127.0.0.1',
-           password: '',
-           ttl: 0,
-           db: 0,
-         },
-       },
-     },
-  },
-  */
   cool: {
-    // 宸茬粡鎻掍欢鍖栵紝鏈湴鏂囦欢涓婁紶鏌ョ湅 plugin/config.ts锛屽叾浠栦簯瀛樺偍鏌ョ湅瀵瑰簲鎻掍欢鐨勪娇鐢�
     file: {},
-    // 鏄惁寮�鍚绉熸埛
     tenant: {
-      // 鏄惁寮�鍚绉熸埛
       enable: true,
-      // 闇�瑕佽繃婊ゅ绉熸埛鐨剈rl, 鏀寔閫氶厤绗︼紝 濡�/admin/**/* 琛ㄧずadmin妯″潡涓嬬殑鎵�鏈夋帴鍙i兘杩涜澶氱鎴疯繃婊�
       urls: [],
     },
-    // 鍥介檯鍖栭厤缃�
     i18n: {
-      // 鏄惁寮�鍚�
       enable: true,
-      // 璇█
       languages: ['zh-cn', 'zh-tw', 'en'],
     },
-    // crud閰嶇疆
     crud: {
-      // 鎻掑叆妯″紡锛宻ave涓嶄細鏍¢獙瀛楁(鍏佽浼犲叆涓嶅瓨鍦ㄧ殑瀛楁)锛宨nsert浼氭牎楠屽瓧娈�
       upsert: 'save',
-      // 杞垹闄�
       softDelete: true,
-    },
+    },  
   } as CoolConfig,
-} as MidwayConfig;
+} as MidwayConfig;
\ No newline at end of file

--
Gitblit v1.9.1