fix: Increase ingress and server body size limits to resolve 413 errors and add related documentation.
All checks were successful
Build and Deploy / build (push) Successful in 1m30s

This commit is contained in:
2025-12-18 11:47:10 +01:00
parent 87e38bd0a3
commit e31323859f
5 changed files with 22 additions and 4 deletions

View File

@@ -109,3 +109,4 @@
- [Final Pool Layout Fix](./devlog/2025-12-18-043500_pool_sizing_final.md): Completed. Overhauled flex layout for Horizontal Pool to ensure card images scale 1:1 with panel height during resize, removing layout-blocking transitions.
- [Pool Overflow Constraint](./devlog/2025-12-18-044500_pool_overflow_fix.md): Completed. Enforce flex shrinkage with `min-h-0` and `overflow-hidden` to strictly bind card height to resizeable panel.
- [Resize Persistence](./devlog/2025-12-18-050000_resize_persistence.md): Completed. Implemented `localStorage` persistence for Sidebars and Pool Panels in both Draft and Deck Views.
- [Resolve 413 Errors](./devlog/2025-12-18-112633_resolve_413_errors.md): Completed. Updated Helm ingress annotations and server limits to allow unlimited upload size.

View File

@@ -0,0 +1,16 @@
# Resolve 413 Request Entity Too Large Errors
## Objective
Fix the "413 Request Entity Too Large" errors occurring during large uploads or requests after application deployment.
## Changes
1. **Helm Chart Configuration (`helm/mtg-draft-maker/values.yaml`)**:
* Added Nginx Ingress annotation `nginx.ingress.kubernetes.io/proxy-body-size: "0"` to disable the body size limit check at the ingress level.
2. **Server Configuration (`src/server/index.ts`)**:
* Increased `maxHttpBufferSize` for Socket.IO to 1GB.
* Increased `express.json` body parser limit to 1000MB to support large JSON payloads (e.g., extensive card lists).
## Verification
* **Infrastructure**: Ensure the application is redeployed with the updated Helm chart for the ingress annotation to take effect.
* **Application**: Verify that large payloads can be sent to the server without triggering 413 errors.