0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-12-24 18:16:13 +01:00

nginx: set the remote ip from X-Real-IP by default (#302)

This commit is contained in:
Tilo Spannagel 2018-04-03 09:40:53 +02:00 committed by Pierre Ozoux
parent f3d3f166ac
commit 01ad4658ab
3 changed files with 15 additions and 0 deletions

View file

@ -25,6 +25,11 @@ http {
keepalive_timeout 65; keepalive_timeout 65;
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 172.16.0.0/12;
set_real_ip_from 192.168.0.0/16;
real_ip_header X-Real-IP;
#gzip on; #gzip on;
upstream php-handler { upstream php-handler {

View file

@ -25,6 +25,11 @@ http {
keepalive_timeout 65; keepalive_timeout 65;
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 172.16.0.0/12;
set_real_ip_from 192.168.0.0/16;
real_ip_header X-Real-IP;
#gzip on; #gzip on;
upstream php-handler { upstream php-handler {

View file

@ -25,6 +25,11 @@ http {
keepalive_timeout 65; keepalive_timeout 65;
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 172.16.0.0/12;
set_real_ip_from 192.168.0.0/16;
real_ip_header X-Real-IP;
#gzip on; #gzip on;
upstream php-handler { upstream php-handler {