From 4ffa7fb12b0641844005e766789281a5576f2db8 Mon Sep 17 00:00:00 2001 From: nai-degen Date: Sun, 7 Jan 2024 13:03:24 -0600 Subject: [PATCH] reduces max request body size for now --- src/proxy/routes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proxy/routes.ts b/src/proxy/routes.ts index 353a460..433cc4c 100644 --- a/src/proxy/routes.ts +++ b/src/proxy/routes.ts @@ -19,8 +19,8 @@ proxyRouter.use((req, _res, next) => { next(); }); proxyRouter.use( - express.json({ limit: "10mb" }), - express.urlencoded({ extended: true, limit: "10mb" }) + express.json({ limit: "1mb" }), + express.urlencoded({ extended: true, limit: "1mb" }) ); proxyRouter.use(gatekeeper); proxyRouter.use(checkRisuToken);