From 430a1edea9ce06f57c74814a1d1eaf8266513ca8 Mon Sep 17 00:00:00 2001 From: jlecour Date: Thu, 29 Dec 2022 15:30:36 +0100 Subject: [PATCH] set_real_ip_from --- HowtoNginx.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HowtoNginx.md b/HowtoNginx.md index 0b914438..7c788ed9 100644 --- a/HowtoNginx.md +++ b/HowtoNginx.md @@ -275,7 +275,8 @@ Si les requĂȘtes viennent d'un proxy HTTP (Varnish par exemple), il faut substit Cela se fait ainsi en s'assurant d'avoir le paquet `nginx-extras` installĂ© : ~~~ -set_real_ip_from 192.0.2.10; # IP du proxy HTTP +set_real_ip_from 192.0.2.10; # IP to trust +set_real_ip_from 10.0.0.0/24; # CIDR to trust real_ip_recursive on; real_ip_header X-Forwarded-For; ~~~