Andrew Bogott has submitted this change and it was merged.

Change subject: dynamicproxy: Add XFF support
......................................................................


dynamicproxy: Add XFF support

Unconditionally sets X-Forwarded-For headers to all proxied
backends.

Change-Id: Icec16079d1b90b01cb7ecab85450cd8ef850c82f
---
M modules/dynamicproxy/templates/proxy.conf
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Andrew Bogott: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/dynamicproxy/templates/proxy.conf 
b/modules/dynamicproxy/templates/proxy.conf
index 7ae87bb..727d0df 100644
--- a/modules/dynamicproxy/templates/proxy.conf
+++ b/modules/dynamicproxy/templates/proxy.conf
@@ -68,5 +68,8 @@
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection $connection_upgrade;
+
+        # Passes client's IP to the backend
+        proxy_set_header X-Forwarded-For $remote_addr;
     }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/105509
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icec16079d1b90b01cb7ecab85450cd8ef850c82f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com>
Gerrit-Reviewer: Andrew Bogott <abog...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to