X-Real-IP header

https://github.com/XTLS/Xray-core/pull/769
This commit is contained in:
xqzr 2021-10-14 17:51:23 +08:00 committed by GitHub
parent cb58f14575
commit 550c2397cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ server {
return 404;
}
client_max_body_size 0;
grpc_set_header X-Real-IP $proxy_add_x_forwarded_for;
client_body_timeout 1071906480m;
grpc_read_timeout 1071906480m;
grpc_pass grpc://127.0.0.1:2002;