Skip to content

proxy: inject X-Forwarded-For/Proto/Host into upstream requests - #133

Merged
GyulyVGC merged 1 commit into
NullNet-ai:mainfrom
antoncxx:proxy-x-forwarded-headers
Aug 4, 2026
Merged

proxy: inject X-Forwarded-For/Proto/Host into upstream requests#133
GyulyVGC merged 1 commit into
NullNet-ai:mainfrom
antoncxx:proxy-x-forwarded-headers

Conversation

@antoncxx

@antoncxx antoncxx commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Implements upstream_request_filter so origin servers see the real client IP, connection scheme, and requested host instead of the proxy's own address and always-plain-HTTP view. Any X-Forwarded-* sent by the client is overwritten rather than trusted, since TLS terminates at this proxy and it is the authoritative source for those values.

Fixes #127

Implements upstream_request_filter so origin servers see the real
client IP, connection scheme, and requested host instead of the
proxy's own address and always-plain-HTTP view. Any X-Forwarded-*
sent by the client is overwritten rather than trusted, since TLS
terminates at this proxy and it is the authoritative source for
those values.

Fixes NullNet-ai#127
@GyulyVGC GyulyVGC added the enhancement New feature or request label Aug 4, 2026
@GyulyVGC
GyulyVGC merged commit 7140f72 into NullNet-ai:main Aug 4, 2026
4 checks passed
@antoncxx
antoncxx deleted the proxy-x-forwarded-headers branch August 4, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The proxy sends no X-Forwarded-* headers to the origin

2 participants