req-rate-limit
Version:
Limiter of request to api
12 lines (10 loc) • 309 B
JavaScript
const config = {
timeReset: 60 * 1000,
activateLockTimeRequest: true, // Allow lock requests that is doing a number attemps define on attempsRequests
attempsRequests: 5,
showLogsIpLock: false,
showLogsAllIpLocks: false,
returnIpLock: false,
returnAllIpLocks: false,
};
module.exports = config;