Forward X-Forwarded-For also for 192.168.0.0/16

This commit is contained in:
Tobias Strobel 2021-09-11 22:19:09 +02:00
parent 2bdbc06801
commit fb3cf33326

View file

@ -12,6 +12,7 @@ http {
error_log /var/log/nginx/error.log warn;
set_real_ip_from 127.0.0.1;
set_real_ip_from ::1;
set_real_ip_from 192.168.0.0/16;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
include /etc/nginx/mime.types;