From e7a481f25a2977f4443a4c084c135ee6e183c4da Mon Sep 17 00:00:00 2001 From: Jonathan Joewono <30559735+jogerj@users.noreply.github.com> Date: Sat, 21 Jun 2025 17:58:15 +0200 Subject: [PATCH] add instructions for cloudflare --- Proxy-examples.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Proxy-examples.md b/Proxy-examples.md index fef3421..667e764 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -184,6 +184,9 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; + # If you use Cloudflare proxying, replace $remote_addr with $http_cf_connecting_ip + # See https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/#nginx-1 + # alternatively use ngx_http_realip_module proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;