Merge pull request #687 from openziti/demonstrate-x-real-ip

demonstrate setting x-real-ip header with Caddyfile
This commit is contained in:
Kenneth Bingham 2024-06-30 16:06:43 -04:00 committed by GitHub
commit 82ceeed58a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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}
}
}