mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
disable rate limiting middleware
This commit is contained in:
@@ -4,7 +4,9 @@ var limiter = require('connect-ratelimit');
|
|||||||
var IS_PROD = nconf.get('NODE_ENV') === 'production';
|
var IS_PROD = nconf.get('NODE_ENV') === 'production';
|
||||||
|
|
||||||
module.exports = function(app) {
|
module.exports = function(app) {
|
||||||
if (!IS_PROD) return;
|
// TODO review later
|
||||||
|
// disable the rate limiter middleware
|
||||||
|
if (/*!IS_PROD || */true) return;
|
||||||
app.use(limiter({
|
app.use(limiter({
|
||||||
end:false,
|
end:false,
|
||||||
categories:{
|
categories:{
|
||||||
|
|||||||
Reference in New Issue
Block a user