Skip to main content
Version: 3.2.0

fix-protect-body-limit

🐛 Bug Fixes​

Webhook body larger than 100kb​

Goal: A GitHub or GitLab push whose JSON body is over 100kb must reach POST /api/v1/protect instead of being rejected by the default parser.

Solution: The default Nest body parser is disabled. /api/v1/protect accepts TOWER_PROTECT_BODY_LIMIT (default 25mb). Every other route stays at 100kb. The install docs say how to set it.

Files Modified:

  • src/main.ts - parsers, protect route first
  • src/http/body-limit.ts - env size
  • src/http/body-limit.spec.ts - default, case, and invalid sizes
  • docs/user/install/environment.md - one heading per environment variable
  • docs/user/fr/install/environment.md - same page in French
  • docs/user/install/procedure.md - link to that page
  • docs/user/fr/install/procedure.md - link to that page
  • docs/user/install/kubernetes.md - link to that page
  • docs/user/fr/install/kubernetes.md - link to that page
  • docs/user/operations/troubleshooting.md - payload over the limit
  • docs/user/fr/operations/troubleshooting.md - payload over the limit
  • package.json - patch basic-ftp, mailparser, qs, and ip-address