mirror of https://gitlab.crans.org/nounous/nixos
nginx: set real ip
parent
75603387c7
commit
935dce826d
|
|
@ -6,5 +6,13 @@
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
|
|
||||||
clientMaxBodySize = "512M";
|
clientMaxBodySize = "512M";
|
||||||
|
|
||||||
|
# On trust nos ip internes pour bien indiquer le client au bout
|
||||||
|
# i.e. on considère pas le reverseproxy comme notre client
|
||||||
|
appendHttpConfig = ''
|
||||||
|
set_real_ip_from 172.16.0.0/16;
|
||||||
|
set_real_ip_from fd00::/56;
|
||||||
|
real_ip_header X-Real-Ip;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue