Skip to content

Commit

Permalink
Merge branch 'master' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
aled committed Jul 20, 2024
2 parents ef0dcec + a2584c7 commit e0b4e10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Fakemail.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"CacheSize": 1000,
"RateLimitDefinitions": [
{
"MaxRequests": 5,
"MaxRequests": 20,
"Period": "00:00:01"
},
{
"MaxRequests": 100,
"MaxRequests": 120,
"Period": "00:01:00"
},
{
"MaxRequests": 450,
"MaxRequests": 900,
"Period": "00:15:00"
}
]
Expand Down
2 changes: 1 addition & 1 deletion Fakemail.RateLimiter/IpRateLimitingMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public async Task InvokeAsync(HttpContext context)
ipAddress = context.Connection.RemoteIpAddress;
}

logger.LogInformation("RateLimiting: checking {ipAddress}", ipAddress);
logger.LogInformation("RateLimiter: checking {ipAddress} for {url}", ipAddress, context.Request.Path);

var ipAddressBytes = context.Connection.RemoteIpAddress.GetAddressBytes();

Expand Down
6 changes: 3 additions & 3 deletions Fakemail.Web/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"CacheSize": 1000,
"RateLimitDefinitions": [
{
"MaxRequests": 5,
"MaxRequests": 20,
"Period": "00:00:01"
},
{
"MaxRequests": 100,
"MaxRequests": 120,
"Period": "00:01:00"
},
{
"MaxRequests": 450,
"MaxRequests": 900,
"Period": "00:15:00"
}
]
Expand Down

0 comments on commit e0b4e10

Please sign in to comment.