mirror of
https://github.com/openziti/zrok.git
synced 2025-06-14 13:56:57 +02:00
Merge pull request #687 from openziti/demonstrate-x-real-ip
demonstrate setting x-real-ip header with Caddyfile
This commit is contained in:
commit
82ceeed58a
@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## v0.4.35
|
||||||
|
|
||||||
|
CHANGE: add example in ./etc/caddy to set X-Real-IP header to public share client IP
|
||||||
|
|
||||||
## v0.4.34
|
## v0.4.34
|
||||||
|
|
||||||
FEATURE: Linux service support for all private share modes (contribution from Stefan Adelbert @stefanadelbert)
|
FEATURE: Linux service support for all private share modes (contribution from Stefan Adelbert @stefanadelbert)
|
||||||
|
@ -29,5 +29,6 @@ http:// {
|
|||||||
# All other traffic goes to localhost:3000
|
# All other traffic goes to localhost:3000
|
||||||
reverse_proxy /* 127.0.0.1:3000 {
|
reverse_proxy /* 127.0.0.1:3000 {
|
||||||
header_up Host localhost:3000
|
header_up Host localhost:3000
|
||||||
|
header_up X-Real-IP {http.request.header.x-forwarded-for}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user