Switch to nginx compiled with the real ip module.
This commit is contained in:
parent
707bca892e
commit
9d92c1cb0f
3 changed files with 3 additions and 0 deletions
Binary file not shown.
BIN
binary_dependencies/nginx_1.4.2-nobuffer-3_amd64.deb
Normal file
BIN
binary_dependencies/nginx_1.4.2-nobuffer-3_amd64.deb
Normal file
Binary file not shown.
|
@ -2,6 +2,9 @@ client_max_body_size 8G;
|
|||
client_body_temp_path /var/log/nginx/client_body 1 2;
|
||||
server_name _;
|
||||
|
||||
set_real_ip_from 172.17.0.0/16;
|
||||
real_ip_header X-Forwarded-For;
|
||||
|
||||
keepalive_timeout 5;
|
||||
|
||||
if ($args ~ "_escaped_fragment_") {
|
||||
|
|
Reference in a new issue