From 952aae5e7a18bca2dcaf3a6bb8eca8e1bb4cd6a5 Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Sun, 30 Jun 2024 12:59:34 -0400 Subject: [PATCH] demonstrate setting x-real-ip header with Caddyfile --- CHANGELOG.md | 4 ++++ etc/caddy/multiple_upstream.Caddyfile | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 831f5888..1c6e022c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/etc/caddy/multiple_upstream.Caddyfile b/etc/caddy/multiple_upstream.Caddyfile index 99f58b68..122fec31 100644 --- a/etc/caddy/multiple_upstream.Caddyfile +++ b/etc/caddy/multiple_upstream.Caddyfile @@ -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} } }