From 8b2ec6c3d8dc3353e6e395de3ff550bcb9790ec6 Mon Sep 17 00:00:00 2001 From: Matthew Rodatus Date: Sat, 4 Jul 2020 22:34:20 -0400 Subject: [PATCH] Add X-Real-IP upstream header in Caddy 2.x reverse-proxy example --- Proxy-examples.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Proxy-examples.md b/Proxy-examples.md index 58b5dbf..57fac03 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -113,7 +113,11 @@ Caddy 2 can also automatically enable HTTPS in some circumstances, check the [do # reverse_proxy /notifications/hub :3012 # # # Proxy the Root directory to Rocket -# reverse_proxy :80 +# reverse_proxy :80 { +# # Send the true remote IP to Rocket, so that bitwarden_rs can put this in the +# # log, so that fail2ban can ban the correct IP. +# header_up X-Real-IP {remote_host} +# } #} ```