From ed612c03c5bf20bf6fe8203e063738a0775d5979 Mon Sep 17 00:00:00 2001 From: Amir Date: Thu, 9 Apr 2026 12:46:48 +0300 Subject: [PATCH] Update nginx.conf Added X-Real-IP header to pass the direct client IP to Xray-core. --- VLESS-XHTTP3-Nginx/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/VLESS-XHTTP3-Nginx/nginx.conf b/VLESS-XHTTP3-Nginx/nginx.conf index c1387cdf..bd3426a8 100644 --- a/VLESS-XHTTP3-Nginx/nginx.conf +++ b/VLESS-XHTTP3-Nginx/nginx.conf @@ -17,6 +17,7 @@ server { # 在 location 后填写 /你的 path/ location /你的 path/ { client_max_body_size 0; + grpc_set_header X-Real-IP $remote_addr; grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_body_timeout 5m; grpc_read_timeout 315;