MarounMaroun
Repos
71
Followers
39
Following
47

Eclipse plugin that enables you to get answers from Stack Overflow directly to your IDE 🔥

85
18

📶 View your contribution graph from the terminal

7
0

🚀 Pure Bash implementation of the GitHub API

12
5

✅ GitHub action for running ShellCheck on shell files in your PR

6
1

🔗 Auto link to reference external resources based on the reference ID in the commit message

2
0

Bash syntax 101 🚑

9
5

Events

Created at 4 days ago
Created at 1 month ago
Created at 1 month ago
Created at 1 month ago
Created at 1 month ago
Created at 2 months ago
What's the default retry-time? How to override it?

I don't see anywhere in the configuration that we can set a time for the block. What's the default and how we can override it?

Created at 2 months ago
What's the default retry-time? How to override it?

I figured it out. It defaults to the Period in the GeneralRules. If you wish to change it, you can use PeriodTimespan. Example:

    "GeneralRules": [
      {
        "Endpoint": "*:/api/your-endpoint",
        "Period": "100s",
        "Limit": 20,
        "PeriodTimespan": "0.00:10:00"
      }
    ]
Created at 2 months ago
What's the default retry-time? How to override it?

I don't see anywhere in the configuration that we can set a time for the block. What's the default and how we can override it?

Created at 2 months ago
Not seeing keys stored in Redis

My endpoint is being blocked if the rate exceeds the defined rules, however, when I inspect Redis keys, I don't see my IP anywhere.

My configurations:

services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
services.Configure<IpRateLimitOptions>(Configuration.GetSection("IpRateLimiting"));
services.AddDistributedRateLimiting<AsyncKeyLockProcessingStrategy>();
services.AddRedisRateLimiting();
services.AddSingleton<IClientPolicyStore, DistributedCacheClientPolicyStore>();
services.AddSingleton<IRateLimitCounterStore, DistributedCacheRateLimitCounterStore>();
Created at 2 months ago
Not seeing keys stored in Redis

My endpoint is being blocked if the rate exceeds the defined rules, however, when I inspect Redis keys, I don't see my IP anywhere.

My configurations:

services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
services.Configure<IpRateLimitOptions>(Configuration.GetSection("IpRateLimiting"));
services.AddDistributedRateLimiting<AsyncKeyLockProcessingStrategy>();
services.AddRedisRateLimiting();
services.AddSingleton<IClientPolicyStore, DistributedCacheClientPolicyStore>();
services.AddSingleton<IRateLimitCounterStore, DistributedCacheRateLimitCounterStore>();
Created at 2 months ago
Created at 2 months ago