remote_addr pass through

This commit is contained in:
Samuel Huang
2024-09-12 21:09:39 +10:00
parent 545e5fe33e
commit c756c0e66e
4 changed files with 26 additions and 16 deletions

View File

@@ -6,4 +6,7 @@
client_body_timeout 1071906480m;
grpc_read_timeout 1071906480m;
grpc_pass grpc://HOST:PORT;
grpc_set_header Host $host;
grpc_set_header X-Real-IP $remote_addr;
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}