fix(proxy): accept uploads up to 250 MB in every nginx hop

nginx's default client_max_body_size is 1 MB, so a phone photo (3-5 MB)
uploaded as a product image or customer-display image was refused with
413 before it reached the backend. The proxy (both copies, CS-5) and the
waiter, manager and terminal images now allow 250 MB; the backend checks
the real limits (media library: 20 MB pictures, 200 MB videos, step 5.1).
All five configs pass `nginx -t`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 13:22:26 +02:00
co-authored by Claude Opus 5.5
parent 1fc34d6c9e
commit 24971533a0
5 changed files with 20 additions and 0 deletions
+4
View File
@@ -123,6 +123,10 @@ map $http_upgrade $connection_upgrade {
'' close; '' close;
} }
# Uploads: the media library takes pictures up to 20 MB and videos up to 200 MB
# (local_backend/services/media.py checks the real limits; nginx's default is 1 MB).
client_max_body_size 250m;
# ── Plain HTTP ──────────────────────────────────────────────────────────────── # ── Plain HTTP ────────────────────────────────────────────────────────────────
server { server {
+4
View File
@@ -1,3 +1,7 @@
# Uploads: the media library takes pictures up to 20 MB and videos up to 200 MB
# (local_backend/services/media.py checks the real limits; nginx's default is 1 MB).
client_max_body_size 250m;
server { server {
listen 80; listen 80;
+4
View File
@@ -20,6 +20,10 @@ map $http_upgrade $connection_upgrade {
'' close; '' close;
} }
# Uploads: the media library takes pictures up to 20 MB and videos up to 200 MB
# (local_backend/services/media.py checks the real limits; nginx's default is 1 MB).
client_max_body_size 250m;
# ── Plain HTTP ──────────────────────────────────────────────────────────────── # ── Plain HTTP ────────────────────────────────────────────────────────────────
server { server {
+4
View File
@@ -1,5 +1,9 @@
# Terminal image (plan step 3.1b): the static app + /api and /static forwarded to the backend. # Terminal image (plan step 3.1b): the static app + /api and /static forwarded to the backend.
# Reached through the proxy on :8082 (LAN only). Same as the manager's image. # Reached through the proxy on :8082 (LAN only). Same as the manager's image.
# Uploads: the media library takes pictures up to 20 MB and videos up to 200 MB
# (local_backend/services/media.py checks the real limits; nginx's default is 1 MB).
client_max_body_size 250m;
server { server {
listen 80; listen 80;
+4
View File
@@ -1,3 +1,7 @@
# Uploads: the media library takes pictures up to 20 MB and videos up to 200 MB
# (local_backend/services/media.py checks the real limits; nginx's default is 1 MB).
client_max_body_size 250m;
server { server {
listen 80; listen 80;