mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:43:26 +08:00
【新增】新增客户端IP限流模块。
This commit is contained in:
@@ -81,10 +81,14 @@ namespace CoreCms.Net.Configuration
|
||||
|
||||
#region Middleware中间件================================================================================
|
||||
/// <summary>
|
||||
/// Ip限流
|
||||
/// 是否记录ip信息
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareIpLogEnabled = AppSettingsHelper.GetContent("Middleware", "IPLog", "Enabled").ObjToBool();
|
||||
/// <summary>
|
||||
/// 是否开启IP限流
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareIpRateLimitEnabled = AppSettingsHelper.GetContent("Middleware", "IpRateLimit", "Enabled").ObjToBool();
|
||||
/// <summary>
|
||||
/// 记录请求与返回数据
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareRequestResponseLogEnabled = AppSettingsHelper.GetContent("Middleware", "RequestResponseLog", "Enabled").ObjToBool();
|
||||
|
||||
Reference in New Issue
Block a user