19 lines
494 B
C#
19 lines
494 B
C#
namespace Flypaper.Core;
|
|
|
|
public sealed class FlypaperOptions
|
|
{
|
|
public const string SectionName = "Flypaper";
|
|
|
|
public int MaxConnections { get; set; } = 1000;
|
|
|
|
public int MaxConnectionsPerIp { get; set; } = 10;
|
|
|
|
public TimeSpan MaxHoldDuration { get; set; } = TimeSpan.FromHours(1);
|
|
|
|
public int RepeatWindowDays { get; set; } = 7;
|
|
|
|
public TimeSpan RepeatHoldDuration { get; set; } = TimeSpan.FromHours(24);
|
|
|
|
public bool IgnorePrivateNetworks { get; set; } = true;
|
|
}
|