Skip to content

Commit

Permalink
fix: set trust proxy to true
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed May 16, 2024
1 parent 1cbe71f commit 0d8ea48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdm-be/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const limiter = rateLimit({
standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
legacyHeaders: false, // Disable the `X-RateLimit-*` headers
validate: {
trustProxy: false, // Enable being behind a proxy server
trustProxy: true, // Enable being behind a proxy server
},
});
app.use(limiter);
Expand Down

0 comments on commit 0d8ea48

Please sign in to comment.