mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-14 02:25:08 +01:00
nginx: set the remote ip from X-Real-IP by default
This commit is contained in:
parent
e01caa961f
commit
fdf9c48186
3 changed files with 15 additions and 0 deletions
|
@ -25,6 +25,11 @@ http {
|
|||
|
||||
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;
|
||||
|
||||
upstream php-handler {
|
||||
|
|
|
@ -25,6 +25,11 @@ http {
|
|||
|
||||
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;
|
||||
|
||||
upstream php-handler {
|
||||
|
|
|
@ -25,6 +25,11 @@ http {
|
|||
|
||||
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;
|
||||
|
||||
upstream php-handler {
|
||||
|
|
Loading…
Add table
Reference in a new issue