Skip to content

Commit

Permalink
idk why requests are being 502'd
Browse files Browse the repository at this point in the history
it was majoritively the rate limit since it happens less now but the fact that it has been happening is not good i'll possibly put in a bug report later about the issue for now leaving the rate limit commented out
  • Loading branch information
Varrience authored Jan 26, 2025
1 parent 3edc965 commit a244d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ connectDB();
*/
const bigPaths = new RegExp(`^/datablock_storage/[^/]+/(${["populate_key_values", "populate_tables"].join("|")})`);
app.use((req, res, next) => {
const maxSize = "100kb"; // req.path.match(bigPaths) !== null ? "10mb": "100kb";
const maxSize = req.path.match(bigPaths) !== null ? "10mb": "100kb";
express.json({limit: maxSize})(req, res, next);
}); // Parse JSON request bodies
app.use(cookieParser()); // Parse cookies attached to the Client request
Expand Down

0 comments on commit a244d7f

Please sign in to comment.