Variables
Const bruteForce
bruteForce: ExpressBrute = new Brute(store, {freeRetries: BRUTE_FREE_RETRIES,lifetime: BRUTE_LIFETIME})
Const bruteForceHandler
bruteForceHandler: prevent = bruteForce.prevent
Const publicRateLimiter
publicRateLimiter: RateLimitReturnType = RateLimit({windowMs: PUBLIC_RATE_LIMIT_TIME,max: PUBLIC_RATE_LIMIT_MAX})
Const rateLimiter
rateLimiter: RateLimitReturnType = RateLimit({windowMs: RATE_LIMIT_TIME,max: RATE_LIMIT_MAX})
Const speedLimiter
speedLimiter: RequestHandler = slowDown({windowMs: SPEED_LIMIT_TIME,delayAfter: SPEED_LIMIT_COUNT,delayMs: SPEED_LIMIT_DELAY})
Const store
store: MemoryStore = new Brute.MemoryStore()
Brute force middleware