Skip to content

docs: Use $remote_addr in nginx config. - #535

Merged
jholdstock merged 1 commit into
decred:masterfrom
jholdstock:nginx-remote
Sep 17, 2026
Merged

jholdstock merged 1 commit into
decred:masterfrom
jholdstock:nginx-remote

Conversation

@jholdstock

Copy link
Copy Markdown
Member

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.

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.
@jholdstock
jholdstock merged commit a381bec into decred:master Sep 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants