nginx: set real ip

nextcloud
Pyjacpp 2026-08-19 22:42:20 +02:00
parent 75603387c7
commit 935dce826d
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
1 changed files with 8 additions and 0 deletions

View File

@ -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;
'';
}; };
} }