Skip to content

fix: resolve the client IP in nginx and trust the shared address range - #55

Merged
FournyP merged 1 commit into
mainfrom
fix/proxy-client-ip
Nov 23, 2026
Merged

FournyP merged 1 commit into
mainfrom
fix/proxy-client-ip

Conversation

@FournyP

@FournyP FournyP commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Behind an edge that connects from the shared address range (100.64.0.0/10), the gateway did not trust the edge and gave every client the edge's IP, so the rate limiter shared a few buckets between all users. The images now trust that range too. In the all-in-one image, nginx overwrote X-Real-IP with its peer and the gateway only ever saw nginx. nginx now works out the client IP from PROXY__HEADER / PROXY__TRUSTED_PROXIES, and the gateway trusts only nginx's X-Real-IP. Deployments behind an edge that adds its own hop to X-Forwarded-For should set PROXY__HEADER=X-Real-IP.

@FournyP
FournyP merged commit d5bb840 into main Nov 23, 2026
6 checks passed
@FournyP
FournyP deleted the fix/proxy-client-ip branch November 23, 2026 18:45
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.

1 participant