Skip to content

Commit

Permalink
feat: allow trust proxy (#4396)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus authored Aug 3, 2023
1 parent a09c6dc commit f140b02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/routes/admin-api/user-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export default class UserAdminController extends Controller {
rateLimit({
windowMs: minutesToMilliseconds(1),
max: 20,
validate: false,
standardHeaders: true,
legacyHeaders: false,
}),
Expand Down
1 change: 1 addition & 0 deletions src/lib/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class IndexRouter extends Controller {
rateLimit({
windowMs: minutesToMilliseconds(1),
max: 10,
validate: false,
standardHeaders: true,
legacyHeaders: false,
}),
Expand Down

0 comments on commit f140b02

Please sign in to comment.