mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 02:34:38 -05:00
change ratelimits
This commit is contained in:
parent
eefb854459
commit
952193857f
1 changed files with 3 additions and 3 deletions
|
@ -65,8 +65,8 @@
|
||||||
|
|
||||||
|
|
||||||
const limiter = rateLimit({
|
const limiter = rateLimit({
|
||||||
windowMs: 30 * 1000, // 30 Seconds
|
windowMs:45 * 1000, // 30 Seconds
|
||||||
max: 870, // limit each IP to 870 requests per windowMs
|
max: 886, // limit each IP to 870 requests per windowMs
|
||||||
});
|
});
|
||||||
|
|
||||||
var app = modules.express();
|
var app = modules.express();
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
// but may cause the check to be too sensitive.
|
// but may cause the check to be too sensitive.
|
||||||
toobusy.interval(110);
|
toobusy.interval(110);
|
||||||
|
|
||||||
toobusy.maxLag(2500);
|
toobusy.maxLag(3500);
|
||||||
|
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
if (toobusy()) {
|
if (toobusy()) {
|
||||||
|
|
Loading…
Reference in a new issue