Merge pull request #145 from msumpter/patch-2
Added X-Forwarded-For to pass client IP to backend
This commit is contained in:
commit
84cf39bf09
1 file changed
+2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user