1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

feat: allow trust proxy (#4396)

This commit is contained in:
Jaanus Sellin 2023-08-03 13:47:19 +03:00 committed by GitHub
parent a09c6dcaea
commit f140b0253d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -289,6 +289,7 @@ export default class UserAdminController extends Controller {
rateLimit({ rateLimit({
windowMs: minutesToMilliseconds(1), windowMs: minutesToMilliseconds(1),
max: 20, max: 20,
validate: false,
standardHeaders: true, standardHeaders: true,
legacyHeaders: false, legacyHeaders: false,
}), }),

View File

@ -32,6 +32,7 @@ class IndexRouter extends Controller {
rateLimit({ rateLimit({
windowMs: minutesToMilliseconds(1), windowMs: minutesToMilliseconds(1),
max: 10, max: 10,
validate: false,
standardHeaders: true, standardHeaders: true,
legacyHeaders: false, legacyHeaders: false,
}), }),