From 7b64580a0b310b9e352378561a8d8da599f218f4 Mon Sep 17 00:00:00 2001 From: HotelSync Date: Sat, 28 Mar 2026 16:41:46 +0300 Subject: [PATCH] fix: add X-Real-IP header to /ws nginx location for correct agent IP Co-Authored-By: Claude Sonnet 4.6 --- nginx/conf.d/hotelsync.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/conf.d/hotelsync.conf b/nginx/conf.d/hotelsync.conf index 5804817..9c81df9 100644 --- a/nginx/conf.d/hotelsync.conf +++ b/nginx/conf.d/hotelsync.conf @@ -84,6 +84,8 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_read_timeout 86400; }