From 471fc17ce81d7690a4a5958148c5fa743fe0ee9c Mon Sep 17 00:00:00 2001 From: HotelSync Date: Sat, 28 Mar 2026 16:35:04 +0300 Subject: [PATCH] fix: equipment buttons uniform height, trustProxy for real client IP Co-Authored-By: Claude Sonnet 4.6 --- backend/src/app.ts | 1 + src/pages/EquipmentPage.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/src/app.ts b/backend/src/app.ts index ba31cc1..b43090e 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -48,6 +48,7 @@ export async function buildApp() { }), }, bodyLimit: 20 * 1024 * 1024, // 20MB — for base64 photo uploads + trustProxy: true, // get real IP from X-Real-IP / X-Forwarded-For via nginx }) // ── File uploads & static ───────────────────────────────────────────────── diff --git a/src/pages/EquipmentPage.tsx b/src/pages/EquipmentPage.tsx index ad3f61c..4fd1647 100644 --- a/src/pages/EquipmentPage.tsx +++ b/src/pages/EquipmentPage.tsx @@ -974,7 +974,7 @@ export function EquipmentPage() {