Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen authored Sep 7, 2023
1 parent b7dbd5d commit 374544f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/express/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ Promise.all([plugins.dbConnection(countlyConfig), plugins.dbConnection("countly_
app.enable('trust proxy');
app.set('x-powered-by', false);
const limiter = rateLimit({
keyGenerator: common.getIpAddress,
windowMs: parseInt(plugins.getConfig("security").dashboard_rate_limit_window) * 1000,
max: parseInt(plugins.getConfig("security").dashboard_rate_limit_requests),
headers: false,
Expand Down

0 comments on commit 374544f

Please sign in to comment.