aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-11-19 22:36:43 +0000
committerAkshay <[email protected]>2024-11-19 22:36:43 +0000
commit0003c28d8b042c080776b0f7ad046bca3ba6ae39 (patch)
tree953ae0a6f22ab2519162e7b232933c49d9082c3e /src
parent9cbe9a1f8e6a452cca4fb8f65125f027e3daf83f (diff)
tmp: disable rate limiter
Diffstat (limited to 'src')
-rw-r--r--src/index.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/index.js b/src/index.js
index 6296534..49f1349 100644
--- a/src/index.js
+++ b/src/index.js
@@ -17,15 +17,15 @@ app.use(express.json());
17app.use(express.urlencoded({ extended: true })); 17app.use(express.urlencoded({ extended: true }));
18app.use(express.static(path.join(__dirname, "public"))); 18app.use(express.static(path.join(__dirname, "public")));
19app.use(cookieParser()); 19app.use(cookieParser());
20app.use( 20// app.use(
21 rateLimit({ 21// rateLimit({
22 windowMs: 15 * 60 * 1000, 22// windowMs: 15 * 60 * 1000,
23 max: 100, 23// max: 100,
24 message: "Too many requests from this IP, please try again later.", 24// message: "Too many requests from this IP, please try again later.",
25 standardHeaders: true, 25// standardHeaders: true,
26 legacyHeaders: false, 26// legacyHeaders: false,
27 }), 27// }),
28); 28// );
29app.use("/", routes); 29app.use("/", routes);
30 30
31const port = process.env.READIT_PORT; 31const port = process.env.READIT_PORT;