Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to obtain the real client IP #327

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

mac-chaffee
Copy link
Contributor

@mac-chaffee mac-chaffee commented Oct 27, 2024

Services running behind sish can access the client IP via X-Forwarded-For header, which is set here: https://github.com/antoniomika/oxy/blob/5924ea01c950a0c86c95ccb3f0cb90c38702f3a1/forward/rewrite.go#L23

The use-case for this is enforcing IP bans or IP allow-lists for services running behind sish.

Replaces this PR: picosh/docs#8

@antoniomika antoniomika merged commit 33f4005 into antoniomika:main Jan 8, 2025
1 of 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.

3 participants