20 lines
402 B
C#
20 lines
402 B
C#
namespace Backend.Gateway;
|
|
|
|
public sealed class CorsOptions
|
|
{
|
|
public const string SectionName = "Cors";
|
|
|
|
public string[] AllowedOrigins { get; set; } = [];
|
|
}
|
|
|
|
public sealed class RateLimitOptions
|
|
{
|
|
public const string SectionName = "RateLimiting";
|
|
|
|
public int PermitLimit { get; set; } = 100;
|
|
|
|
public int WindowSeconds { get; set; } = 60;
|
|
|
|
public int QueueLimit { get; set; }
|
|
}
|