You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
max:100, // limit each IP to 100 requests per windowMs
46
47
delayMs:0// disable delaying - full speed until the max limit is reached
@@ -49,10 +50,11 @@ var limiter = new RateLimit({
49
50
50
51
## Configuration
51
52
52
-
***expiry**: seconds - how long each rate limiting window exists for. Defaults to `60`.
53
-
***resetExpiryOnChange**: boolean - if the expiry time should be reset every time a key is incremented/decremented. This means that when the limit is reached and the user is given a 429 response, the rate limit window is extended. Defaults to `false`.
54
-
***prefix**: string - prefix to add to entries in Redis. Defaults to `rl:`.
55
-
***client**: [Redis Client](https://github.com/NodeRedis/node_redis) or [ioredis Client](https://github.com/luin/ioredis)- A Redis Client to use. Defaults to `require('redis').createClient();`.
53
+
-**expiry**: seconds - how long each rate limiting window exists for. Defaults to `60`.
54
+
-**resetExpiryOnChange**: boolean - if the expiry time should be reset every time a key is incremented/decremented. This means that when the limit is reached and the user is given a 429 response, the rate limit window is extended. Defaults to `false`.
55
+
-**prefix**: string - prefix to add to entries in Redis. Defaults to `rl:`.
56
+
-**client**: [Redis Client](https://github.com/NodeRedis/node_redis) or [ioredis Client](https://github.com/luin/ioredis)- A Redis Client to use. Defaults to `require('redis').createClient();`.
57
+
-**redisURL**: string - a Redis connection string to be used for the default client connection. Ignored when the `client` option is provided. [Redis Client connection string format and options](https://github.com/NodeRedis/node_redis#rediscreateclient).
0 commit comments