mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-19 18:24:43 +02:00
fix issues from test deploy
This commit is contained in:
parent
3fb3be1f1e
commit
ce5df3b0b9
92 changed files with 1410 additions and 1019 deletions
|
@ -1,4 +1,5 @@
|
|||
import { Router } from "express";
|
||||
import config from "@server/config";
|
||||
import * as site from "./site";
|
||||
import * as org from "./org";
|
||||
import * as resource from "./resource";
|
||||
|
@ -419,8 +420,12 @@ export const authRouter = Router();
|
|||
unauthenticated.use("/auth", authRouter);
|
||||
authRouter.use(
|
||||
rateLimitMiddleware({
|
||||
windowMin: 10,
|
||||
max: 75,
|
||||
windowMin:
|
||||
config.rate_limits.auth?.window_minutes ||
|
||||
config.rate_limits.global.window_minutes,
|
||||
max:
|
||||
config.rate_limits.auth?.max_requests ||
|
||||
config.rate_limits.global.max_requests,
|
||||
type: "IP_AND_PATH"
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue