From e4333fcb8bec9b148dd4a5e8f2fa7c8c43edc8d2 Mon Sep 17 00:00:00 2001 From: Krishan Patel Date: Fri, 26 Sep 2025 09:50:55 +0100 Subject: [PATCH] . --- proxy/custom.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy/custom.conf b/proxy/custom.conf index 4afbe48..54d4cde 100644 --- a/proxy/custom.conf +++ b/proxy/custom.conf @@ -4,3 +4,7 @@ proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; client_max_body_size 1024M; +# NOTE(krishan711): since we know this is not behind another proxy we force it +# to use the real ip address of the client. +proxy_set_header X-Real-IP $remote_addr; +proxy_set_header X-Forwarded-For $remote_addr;