mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: Rate limiter on requests and login attempts.
This commit is contained in:
@@ -122,4 +122,27 @@ export default {
|
||||
user: process.env.LICENSES_AUTH_USER,
|
||||
password: process.env.LICENSES_AUTH_PASSWORD,
|
||||
},
|
||||
|
||||
/**
|
||||
* Redis storage configuration.
|
||||
*/
|
||||
redis: {
|
||||
port: 6379,
|
||||
},
|
||||
|
||||
/**
|
||||
* Throttler configuration.
|
||||
*/
|
||||
throttler: {
|
||||
login: {
|
||||
points: 5,
|
||||
duration: 60 * 60 * 24 * 1, // Store number for 90 days since first fail
|
||||
blockDuration: 60 * 15,
|
||||
},
|
||||
requests: {
|
||||
points: 30,
|
||||
duration: 60,
|
||||
blockDuration: 60 * 10,
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user