fleshout backend
This commit is contained in:
19
backend/Gateway/GatewayOptions.cs
Normal file
19
backend/Gateway/GatewayOptions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user