【优化】移除appsettings.json弃用的限流节点。

This commit is contained in:
jianweie code
2023-11-19 01:30:00 +08:00
parent d2eb31cc6f
commit d6c6d1f63b
3 changed files with 3 additions and 11 deletions

View File

@@ -39,7 +39,7 @@
"EnableAllIPs": false, //是否应用所有的IP如设置为true则取消跨域限制 "EnableAllIPs": false, //是否应用所有的IP如设置为true则取消跨域限制
// 支持多个域名端口,注意端口号后不要带/斜杆比如localhost:8000/,是错的 // 支持多个域名端口,注意端口号后不要带/斜杆比如localhost:8000/,是错的
// 注意http://127.0.0.1:1818 和 http://localhost:1818 是不一样的 // 注意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": { "Middleware": {
@@ -57,10 +57,6 @@
//记录IP请求数据 //记录IP请求数据
"IPLog": { "IPLog": {
"Enabled": false "Enabled": false
},
//开启Ip限流
"IpRateLimit": {
"Enabled": false
} }
}, },
//UseRateLimiter限流中间件配置 //UseRateLimiter限流中间件配置

View File

@@ -128,7 +128,7 @@
<td>基于框架</td> <td>基于框架</td>
<td> <td>
<script type="text/html" template> <script type="text/html" template>
Asp.Net 7 Asp.Net 8.0
</script> </script>
</td> </td>
</tr> </tr>

View File

@@ -39,7 +39,7 @@
"EnableAllIPs": false, //是否应用所有的IP如设置为true则取消跨域限制 "EnableAllIPs": false, //是否应用所有的IP如设置为true则取消跨域限制
// 支持多个域名端口,注意端口号后不要带/斜杆比如localhost:8000/,是错的 // 支持多个域名端口,注意端口号后不要带/斜杆比如localhost:8000/,是错的
// 注意http://127.0.0.1:1818 和 http://localhost:1818 是不一样的 // 注意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": { "Middleware": {
@@ -57,10 +57,6 @@
//记录IP请求数据 //记录IP请求数据
"IPLog": { "IPLog": {
"Enabled": false "Enabled": false
},
//开启Ip限流
"IpRateLimit": {
"Enabled": false
} }
}, },
//UseRateLimiter限流中间件配置 //UseRateLimiter限流中间件配置