first
This commit is contained in:
@@ -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
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user