diff --git a/alexa/alexa-adapter.js b/alexa/alexa-adapter.js index 22f9423..cb42183 100644 --- a/alexa/alexa-adapter.js +++ b/alexa/alexa-adapter.js @@ -60,7 +60,7 @@ module.exports = function (RED) { const util = require('util'); const TokenGenerator = require('uuid-token-generator'); const express = require('express'); - const expressRateLimit = require("express-rate-limit"); + // const expressRateLimit = require("express-rate-limit"); const helmet = require('helmet'); const morgan = require('morgan'); const cors = require('cors'); @@ -261,13 +261,13 @@ module.exports = function (RED) { const node = this; if (node.verbose) node._debug("startServer port " + node.http_port); const app = express(); - const rate_limit = 30; + /*const rate_limit = 30; const rateLimitMiddleware = expressRateLimit({ windowMs: 60 * 1000, max: rate_limit, message: `You have exceeded your ${rate_limit} requests per minute limit.`, headers: true, - }); + });*/ app.disable('x-powered-by'); app.use(rateLimitMiddleware); app.use(helmet()); diff --git a/package.json b/package.json index c38d402..43b1c85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-alexa-virtual-smarthome", - "version": "0.0.36", + "version": "0.0.37", "description": "Node Red Alexa Smarthome node", "main": "index.js", "scripts": {