Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiochimera committed Jul 9, 2024
1 parent 2a13377 commit aa09f41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions alexa/alexa-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit aa09f41

Please sign in to comment.