From d6c6d1f63b7b348c4cc7029510c5eebab90a1186 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Sun, 19 Nov 2023 01:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E7=A7=BB?= =?UTF-8?q?=E9=99=A4appsettings.json=E5=BC=83=E7=94=A8=E7=9A=84=E9=99=90?= =?UTF-8?q?=E6=B5=81=E8=8A=82=E7=82=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Web.Admin/appsettings.json | 6 +----- CoreCms.Net.Web.Admin/wwwroot/views/index.html | 2 +- CoreCms.Net.Web.WebApi/appsettings.json | 6 +----- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/CoreCms.Net.Web.Admin/appsettings.json b/CoreCms.Net.Web.Admin/appsettings.json index b0ae723a..fb5696d8 100644 --- a/CoreCms.Net.Web.Admin/appsettings.json +++ b/CoreCms.Net.Web.Admin/appsettings.json @@ -39,7 +39,7 @@ "EnableAllIPs": false, //是否应用所有的IP,如设置为true,则取消跨域限制 // 支持多个域名端口,注意端口号后不要带/斜杆:比如localhost:8000/,是错的 // 注意,http://127.0.0.1:1818 和 http://localhost:1818 是不一样的 - "IPs": "http://127.0.0.1:2364,http://localhost:2364" + "IPs": "http://127.0.0.1:4000,http://127.0.0.1:5000,http://127.0.0.1:6000,http://localhost:4000,http://localhost:5000,http://localhost:6000" }, //中间件 "Middleware": { @@ -57,10 +57,6 @@ //记录IP请求数据 "IPLog": { "Enabled": false - }, - //开启Ip限流 - "IpRateLimit": { - "Enabled": false } }, //UseRateLimiter限流中间件配置 diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/index.html index c07177bf..6d911c23 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/index.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/index.html @@ -128,7 +128,7 @@ 基于框架 diff --git a/CoreCms.Net.Web.WebApi/appsettings.json b/CoreCms.Net.Web.WebApi/appsettings.json index 3de2eee1..6d353038 100644 --- a/CoreCms.Net.Web.WebApi/appsettings.json +++ b/CoreCms.Net.Web.WebApi/appsettings.json @@ -39,7 +39,7 @@ "EnableAllIPs": false, //是否应用所有的IP,如设置为true,则取消跨域限制 // 支持多个域名端口,注意端口号后不要带/斜杆:比如localhost:8000/,是错的 // 注意,http://127.0.0.1:1818 和 http://localhost:1818 是不一样的 - "IPs": "http://127.0.0.1:2364,http://localhost:2364" + "IPs": "http://127.0.0.1:4000,http://127.0.0.1:5000,http://127.0.0.1:6000,http://localhost:4000,http://localhost:5000,http://localhost:6000" }, //中间件 "Middleware": { @@ -57,10 +57,6 @@ //记录IP请求数据 "IPLog": { "Enabled": false - }, - //开启Ip限流 - "IpRateLimit": { - "Enabled": false } }, //UseRateLimiter限流中间件配置