This commit is contained in:
mahyargdz
2025-09-14 15:15:03 +03:30
commit be82059172
534 changed files with 51310 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { IAppOptions } from "../../common";
export const appConfig: IAppOptions = {
cors: { origin: true, credentials: true, optionsSuccessStatus: 204 },
rate: {
windowMs: 5 * 60 * 1000, // 5 min
message: "Too many requests from this IP, please try again after an hour",
limit: 11,
standardHeaders: true, //rate limit info in the `RateLimit-*` headers
legacyHeaders: false, // disable the `X-RateLimit-*` headers
},
};