From fb3cf3332660a666242bf7fe801accf9a9423647 Mon Sep 17 00:00:00 2001 From: Tobias Strobel Date: Sat, 11 Sep 2021 22:19:09 +0200 Subject: [PATCH] Forward X-Forwarded-For also for 192.168.0.0/16 --- nextcloud/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/nextcloud/nginx.conf b/nextcloud/nginx.conf index cd4ddec..ad6b270 100644 --- a/nextcloud/nginx.conf +++ b/nextcloud/nginx.conf @@ -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;