From f76d3ba61bac52b922801f8e30caa632cb47a108 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 22 Aug 2014 15:05:54 -0400 Subject: [PATCH] fix package and increase limits --- package.json | 4 ++-- plugins/ratelimiter.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b331b85a..8d45048a 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,8 @@ "socket.io-client": "1.0.6", "soop": "=0.1.5", "winston": "*", - "xmlhttprequest": "~1.6.0" + "xmlhttprequest": "~1.6.0", + "microtime": "^0.6.0" }, "devDependencies": { "chai": "*", @@ -85,7 +86,6 @@ "grunt-mocha-test": "~0.8.1", "grunt-nodemon": "~0.2.0", "memdown": "^0.10.2", - "microtime": "^0.6.0", "should": "2.1.1" } } diff --git a/plugins/ratelimiter.js b/plugins/ratelimiter.js index 6523673a..6c3b2b72 100644 --- a/plugins/ratelimiter.js +++ b/plugins/ratelimiter.js @@ -9,8 +9,8 @@ module.exports.init = function(app, config) { logger.info('Using ratelimiter plugin'); config = config || {}; - config.whitelistRPH = config.whitelistRPH || 50000; - config.normalRPH = config.normalRPH || 1000; + config.whitelistRPH = config.whitelistRPH || 500000; + config.normalRPH = config.normalRPH || 10000; config.blacklistRPH = config.blacklistRPH || 0; app.use(limiter({