A platform for community discussion. Free, open, simple.
FIX: nginx sample configuration should be setting x-f-f to the end user IP
Michael Brownb4a3389751eb
diff --git a/config/nginx.sample.conf b/config/nginx.sample.confindex 4eb5ee3c4f1..da7648bbd7d 100644--- a/config/nginx.sample.conf+++ b/config/nginx.sample.conf@@ -102,7 +102,7 @@ server {proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Request-Start "t=${msec}";- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+ proxy_set_header X-Forwarded-For $remote_addr;proxy_set_header X-Forwarded-Proto $thescheme;proxy_set_header X-Sendfile-Type "";proxy_set_header X-Accel-Mapping "";@@ -171,7 +171,7 @@ server {proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Request-Start "t=${msec}";- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+ proxy_set_header X-Forwarded-For $remote_addr;proxy_set_header X-Forwarded-Proto $thescheme;proxy_set_header X-Sendfile-Type X-Accel-Redirect;proxy_set_header X-Accel-Mapping $public/=/downloads/;@@ -217,7 +217,7 @@ server {proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Request-Start "t=${msec}";- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+ proxy_set_header X-Forwarded-For $remote_addr;proxy_set_header X-Forwarded-Proto $thescheme;proxy_set_header X-Sendfile-Type X-Accel-Redirect;proxy_set_header X-Accel-Mapping $public/=/downloads/;@@ -275,7 +275,7 @@ server {proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Request-Start "t=${msec}";- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+ proxy_set_header X-Forwarded-For $remote_addr;proxy_set_header X-Forwarded-Proto $thescheme;proxy_set_header X-Sendfile-Type "";proxy_set_header X-Accel-Mapping "";