From e970b42dc3fc0513086469e1e679f095234c3c53 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Wed, 21 Jun 2023 08:39:02 -0500 Subject: [PATCH] Use proper local CIDR with real IP setting --- root/defaults/nginx/site-confs/default.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/defaults/nginx/site-confs/default.conf.sample b/root/defaults/nginx/site-confs/default.conf.sample index 812b413..d195ffe 100644 --- a/root/defaults/nginx/site-confs/default.conf.sample +++ b/root/defaults/nginx/site-confs/default.conf.sample @@ -20,7 +20,7 @@ server { root /config/www/nextcloud/; # display real ip in nginx logs when connected through reverse proxy via docker network - set_real_ip_from 172.0.0.0/8; + set_real_ip_from 172.16.0.0/12; real_ip_header X-Forwarded-For; # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html#nextcloud-in-the-webroot-of-nginx