From 44cfd3ebcd8fc8cce27df9d0c66b12de92979b5c Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 10 十一月 2026 17:08:22 +0800
Subject: [PATCH] 网关添加 扩展名过滤,响应页面拦截器。 避免 DLL 文件,日志文件泄露。

---
 appsettings.json |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/appsettings.json b/appsettings.json
index 6e9de47..a13e719 100644
--- a/appsettings.json
+++ b/appsettings.json
@@ -6,15 +6,26 @@
     }
   },
   "AllowedHosts": "*",
+  "Gateway": {
+    "FileFilter": {
+      "Enabled": true,
+      "BlockedExtensions": [ ".dll", ".log" ]
+    },
+    "ErrorPage": {
+      "Enabled": true,
+      "LogPageEnabled": true,
+      "LogPageDirectory": "PageLogs"
+    }
+  },
   "ReverseProxy": {
     "Routes": {
       "mes-backend": {
         "ClusterId": "mes-backend",
         "Match": {
-          "Path": "/API_NW/{**catch-all}"
+          "Path": "/API/{**catch-all}"
         },
         "Transforms": [
-          { "PathRemovePrefix": "/API_NW" }
+          //{ "PathRemovePrefix": "/API" }
         ]
       }
     },
@@ -22,7 +33,7 @@
       "mes-backend": {
         "Destinations": {
           "backend": {
-            "Address": "http://localhost:8090"
+            "Address": "http://localhost:81"
           }
         }
       }

--
Gitblit v1.9.1