From 764700fafdaf037b68369ec1c279522f11d24588 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Wed, 16 Sep 2026 10:58:54 +0100 Subject: [PATCH] docs: Use $remote_addr in nginx config. The previously used value `$proxy_add_x_forwarded_for` would preserve any existing value in the `X-Forwarded-For` header and simply append the true client IP. Using `$remote_addr` instead ensures any existing value is removed and the header is set to only the true client IP. --- docs/deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deployment.md b/docs/deployment.md index 45d34fc4..e127d561 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -118,7 +118,7 @@ vspd. **Do not run a voting wallet on your webserver.** server { location / { proxy_pass http://127.0.0.1:8800/; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-For $remote_addr; } } ```