Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #166 from ProgramEquity/rate-limit-fix
Browse files Browse the repository at this point in the history
Fixes possible load balancing error
  • Loading branch information
Travis Kopp committed Jan 14, 2022
2 parents aea0c1d + 6073638 commit ee60364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.use(cors())
// Rate Limiting
// Enable if you're behind a reverse proxy (Heroku, Bluemix, AWS ELB or API Gateway, Nginx, etc)
// see https://expressjs.com/en/guide/behind-proxies.html
app.set('trust proxy', 1)
app.set('trust proxy', true)

const apiLimiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
Expand Down

0 comments on commit ee60364

Please sign in to comment.