Skip to content

Commit

Permalink
demonstrate setting x-real-ip header with Caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Jun 30, 2024
1 parent 9bb3212 commit 952aae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v0.4.35

CHANGE: add example in ./etc/caddy to set X-Real-IP header to public share client IP

## v0.4.34

FEATURE: Linux service support for all private share modes (contribution from Stefan Adelbert @stefanadelbert)
Expand Down
1 change: 1 addition & 0 deletions etc/caddy/multiple_upstream.Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ http:// {
# All other traffic goes to localhost:3000
reverse_proxy /* 127.0.0.1:3000 {
header_up Host localhost:3000
header_up X-Real-IP {http.request.header.x-forwarded-for}
}
}

0 comments on commit 952aae5

Please sign in to comment.