openvibers/openvibe.vip 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

OP OpenVibers committed 23 Sept 2026 · 968580c0d8 · 1 file, +6 −3


Changes

ddiff --git a/deploy/nginx/openvibe.vip.conf b/deploy/nginx/openvibe.vip.conf
iindex 9abe00c..4217400 100644
---- a/deploy/nginx/openvibe.vip.conf
++++ b/deploy/nginx/openvibe.vip.conf
@@@ -70,8 +70,9 @@ server {
proxy_http_version 1.1;
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-Real-IP $remote_addr;
++ proxy_set_header X-Forwarded-For $remote_addr;
++ proxy_set_header CF-Connecting-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
# ── Never public ────────────────────────────────────────
@@@ -99,7 +100,9 @@ server {
location / {
limit_req zone=ovvip_forms burst=20 nodelay;
proxy_pass http://127.0.0.1:4620;
-- proxy_set_header CF-Connecting-IP $http_cf_connecting_ip;
++ proxy_set_header X-Real-IP $remote_addr;
++ proxy_set_header X-Forwarded-For $remote_addr;
++ proxy_set_header CF-Connecting-IP $remote_addr;
}
location ~ /\.(?!well-known) {