diff --git a/config/nginx/f0ck.conf b/config/nginx/f0ck.conf index 0bbbb8a..9dbdbe4 100644 --- a/config/nginx/f0ck.conf +++ b/config/nginx/f0ck.conf @@ -1,3 +1,11 @@ client_max_body_size 10000M; client_body_timeout 120s; client_header_timeout 120s; + +# Pass real IP and forwarded headers from Nginx to Node.js backend +proxy_set_header X-Real-IP $remote_addr; +proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +proxy_set_header X-Forwarded-Proto $scheme; +proxy_set_header Host $http_host; +proxy_set_header CF-Connecting-IP $http_cf_connecting_ip; +