diff --git a/CHANGELOG.md b/CHANGELOG.md index b026457..cabd99d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Improved: Descriptive error on installations on incompatible systems (e.g. Proxmox LXC) [issues-2326](https://github.com/caprover/caprover/issues/2326) - Improved: Moved one click app creation process to backend for more stability [PR-2334](https://github.com/caprover/caprover/pull/2334) - Improved: Reduced the Backup size by excluding the GoAccess logs [PR-2336](https://github.com/caprover/caprover/pull/2336) +- Fixed: Git webhook deployments failing when webhook payloads exceed 100 KB [Issue-1393](https://github.com/caprover/caprover/issues/1393) ## [1.14.2] - 2026-05-14 diff --git a/src/app.ts b/src/app.ts index 864de78..d78e767 100644 --- a/src/app.ts +++ b/src/app.ts @@ -43,10 +43,15 @@ app.use( }, }) ) -app.use(bodyParser.json()) +app.use( + bodyParser.json({ + limit: '2mb', + }) +) app.use( bodyParser.urlencoded({ extended: false, + limit: '2mb', }) ) app.use(cookieParser()) diff --git a/src/routes/user/apps/webhooks/WebhooksRouter.ts b/src/routes/user/apps/webhooks/WebhooksRouter.ts index 4149f9c..850091f 100644 --- a/src/routes/user/apps/webhooks/WebhooksRouter.ts +++ b/src/routes/user/apps/webhooks/WebhooksRouter.ts @@ -9,6 +9,7 @@ const router = express.Router() const urlencodedParser = bodyParser.urlencoded({ extended: true, + limit: '2mb', }) function getPushedBranches(req: express.Request) {