Merge pull request #145 from msumpter/patch-2

Added X-Forwarded-For to pass client IP to backend
This commit is contained in:
rhy-jot committed 2013-08-15 21:10:09 -07:00
commit 84cf39bf09
1 file changed
+2
+2
View File
@@ -47,6 +47,7 @@ server {
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_set_header Host \$http_host; proxy_set_header Host \$http_host;
proxy_set_header X-Scheme \$scheme; proxy_set_header X-Scheme \$scheme;
proxy_set_header X-Forwarded-For \$remote_addr;
} }
} }
EOF EOF
@@ -63,6 +64,7 @@ server {
proxy_set_header Upgrade \$http_upgrade; proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_set_header Host \$http_host; proxy_set_header Host \$http_host;
proxy_set_header X-Forwarded-For \$remote_addr;
} }
} }
EOF EOF