fix package and increase limits

This commit is contained in:
Manuel Araoz 2014-08-22 15:05:54 -04:00
parent cd65116e22
commit f76d3ba61b
2 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,8 @@
"socket.io-client": "1.0.6", "socket.io-client": "1.0.6",
"soop": "=0.1.5", "soop": "=0.1.5",
"winston": "*", "winston": "*",
"xmlhttprequest": "~1.6.0" "xmlhttprequest": "~1.6.0",
"microtime": "^0.6.0"
}, },
"devDependencies": { "devDependencies": {
"chai": "*", "chai": "*",
@ -85,7 +86,6 @@
"grunt-mocha-test": "~0.8.1", "grunt-mocha-test": "~0.8.1",
"grunt-nodemon": "~0.2.0", "grunt-nodemon": "~0.2.0",
"memdown": "^0.10.2", "memdown": "^0.10.2",
"microtime": "^0.6.0",
"should": "2.1.1" "should": "2.1.1"
} }
} }

View File

@ -9,8 +9,8 @@ module.exports.init = function(app, config) {
logger.info('Using ratelimiter plugin'); logger.info('Using ratelimiter plugin');
config = config || {}; config = config || {};
config.whitelistRPH = config.whitelistRPH || 50000; config.whitelistRPH = config.whitelistRPH || 500000;
config.normalRPH = config.normalRPH || 1000; config.normalRPH = config.normalRPH || 10000;
config.blacklistRPH = config.blacklistRPH || 0; config.blacklistRPH = config.blacklistRPH || 0;
app.use(limiter({ app.use(limiter({