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

35 lines
737 B
JSON

{
"DetailedErrors": true,
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.AspNetCore.RateLimiting":"Debug"
}
},
"MyRateLimit": {
"PermitLimit": 4,
"Window": 3,
"ReplenishmentPeriod": 1,
"QueueLimit": 2,
"SegmentsPerWindow": 2,
"TokenLimit": 4,
"TokenLimit2": 6,
"TokensPerPeriod": 4,
"AutoReplenishment": true
},
"Authentication": {
"Schemes": {
"Bearer": {
"ValidAudiences": [
"http://localhost:58245",
"https://localhost:44387",
"http://localhost:5266",
"https://localhost:7266"
],
"ValidIssuer": "dotnet-user-jwts"
}
}
}
}