demonstrate setting x-real-ip header with Caddyfile

This commit is contained in:
Kenneth Bingham 2024-06-30 12:59:34 -04:00
parent 9bb321285e
commit 952aae5e7a
No known key found for this signature in database
GPG Key ID: 31709281860130B6
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}
}
}