AspNetCore.Docs.Samples/fundamentals/middleware/rate-limit/WebRateLimitAuth/appsettings.json

24 lines
608 B
JSON

{
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-WebRateLimitAuth-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"MyRateLimit": {
"permitLimit": "10",
"window": "2",
"replenishmentPeriod": "1",
"queueLimit": "10",
"segmentsPerWindow": "4",
"tokenLimit": 8,
"tokenLimit2": 12,
"tokensPerPeriod": 4,
"autoReplenishment": true
}
}