openvibers/openvibe.wiki Commits
nginx: client address headers only from $remote_addr (realip). X-Forwarded-For was appended to and CF-Connecting-IP passed through from the client, so a request reaching the origin without Cloudflare (DNS-only host or the bare IP) chose the address the service bans and rate-limits by
Changes
@@@ -74,7 +74,8 @@ server {proxy_set_header Connection "";proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;-- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;++ proxy_set_header X-Forwarded-For $remote_addr;++ proxy_set_header CF-Connecting-IP $remote_addr;proxy_set_header X-Forwarded-Proto $scheme;# Never let a shared cache here hold a personalised or private answer.proxy_no_cache 1;
@@ -74,7 +74,8 @@ server {
@@ -74,7 +74,8 @@ server {
proxy_set_header Connection "";
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-For $remote_addr;
+ proxy_set_header CF-Connecting-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
# Never let a shared cache here hold a personalised or private answer.
# Never let a shared cache here hold a personalised or private answer.
proxy_no_cache 1;
proxy_no_cache 1;