From 3cba680e6c05077a80a006bebcc0592c30941123 Mon Sep 17 00:00:00 2001 From: starry <115192496+sky22333@users.noreply.github.com> Date: Wed, 11 Jun 2025 20:45:43 +0800 Subject: [PATCH] Update README.md --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8c144e6..714bbd6 100644 --- a/README.md +++ b/README.md @@ -78,14 +78,9 @@ https://yourdomain.com/https://github.com/user/repo/releases/download/v1.0.0/fil ``` example.com { reverse_proxy 127.0.0.1:5000 { - # 始终设置基础 IP - header_up X-Real-IP {remote_host} - header_up X-Forwarded-For {remote_host} - - # 如果有 CF IP,覆盖设置 - header_up CF-Connecting-IP {http.request.header.CF-Connecting-IP} - - header_up X-Forwarded-Proto {scheme} + header_up X-Forwarded-For {http.request.header.CF-Connecting-IP} + header_up X-Real-IP {http.request.header.CF-Connecting-IP} + header_up X-Forwarded-Proto https header_up X-Forwarded-Host {host} } }