Skip to content

Commit

Permalink
Trust 2 hops proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
soruly committed Oct 17, 2024
1 parent 5f2838f commit af44965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getHelpMessage = (botName) =>
].join("\n");

app.disable("x-powered-by");
app.set("trust proxy", 1);
app.set("trust proxy", 2);
app.use(
rateLimit({
max: 100, // limit each IP to 100 requests
Expand Down

0 comments on commit af44965

Please sign in to comment.