blog3000/Blog3000/Server/appsettings.json

24 lines
480 B
JSON

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"IpRateLimiting": {
"EnableEndpointRateLimiting": true,
"StackBlockedRequests": false,
"RealIpHeader": "X-Forwarded-For",
"HttpStatusCode": 429,
"GeneralRules": [
{
"Endpoint": "*:/BlogPosts/search",
"Period": "1s",
"Limit": 2
}
]
}
}