Skip to content
Snippets Groups Projects
Commit 01ad4658 authored by Tilo Spannagel's avatar Tilo Spannagel Committed by Pierre Ozoux
Browse files

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

parent f3d3f166
Branches
Tags
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment