Skip to content

Document how to obtain the real client IP#327

Merged
antoniomika merged 1 commit intoantoniomika:mainfrom
mac-chaffee:real-ip
Jan 8, 2025
Merged

Document how to obtain the real client IP#327
antoniomika merged 1 commit intoantoniomika:mainfrom
mac-chaffee:real-ip

Conversation

@mac-chaffee
Copy link
Copy Markdown
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
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