File tree Expand file tree Collapse file tree 14 files changed +42
-13
lines changed
Expand file tree Collapse file tree 14 files changed +42
-13
lines changed Original file line number Diff line number Diff line change 77 worker_connections 1024 ;
88}
99
10-
1110http {
1211 proxy_temp_path /tmp/proxy_temp;
1312 client_body_temp_path /tmp/client_temp;
1817 include /etc/nginx/mime.types ;
1918 default_type application/octet-stream ;
2019
21- set_real_ip_from 172.16.0.0 /8 ;
20+ set_real_ip_from 172.16.0.0 /16 ;
2221 real_ip_recursive on;
2322 real_ip_header X-Forwarded-For;
2423
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ server {
66
77 client_max_body_size ${NGINX_MAX_BODY_SIZE};
88
9+ # This also needs to be set in the single server tag and not only in http.
10+ set_real_ip_from 172.16.0.0/16;
11+ real_ip_recursive on;
12+ real_ip_header X-Forwarded-For;
13+
914 location = /favicon.ico {
1015 log_not_found off;
1116 access_log off;
Original file line number Diff line number Diff line change 77 worker_connections 1024 ;
88}
99
10-
1110http {
1211 proxy_temp_path /tmp/proxy_temp;
1312 client_body_temp_path /tmp/client_temp;
1817 include /etc/nginx/mime.types ;
1918 default_type application/octet-stream ;
2019
21- set_real_ip_from 172.16.0.0 /8 ;
20+ set_real_ip_from 172.16.0.0 /16 ;
2221 real_ip_recursive on;
2322 real_ip_header X-Forwarded-For;
2423
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ server {
66
77 client_max_body_size ${NGINX_MAX_BODY_SIZE};
88
9+ # This also needs to be set in the single server tag and not only in http.
10+ set_real_ip_from 172.16.0.0/16;
11+ real_ip_recursive on;
12+ real_ip_header X-Forwarded-For;
13+
914 location = /favicon.ico {
1015 log_not_found off;
1116 access_log off;
Original file line number Diff line number Diff line change 77 worker_connections 1024 ;
88}
99
10-
1110http {
1211 proxy_temp_path /tmp/proxy_temp;
1312 client_body_temp_path /tmp/client_temp;
1817 include /etc/nginx/mime.types ;
1918 default_type application/octet-stream ;
2019
21- set_real_ip_from 172.16.0.0 /8 ;
20+ set_real_ip_from 172.16.0.0 /16 ;
2221 real_ip_recursive on;
2322 real_ip_header X-Forwarded-For;
2423
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ server {
66
77 client_max_body_size ${NGINX_MAX_BODY_SIZE};
88
9+ # This also needs to be set in the single server tag and not only in http.
10+ set_real_ip_from 172.16.0.0/16;
11+ real_ip_recursive on;
12+ real_ip_header X-Forwarded-For;
13+
914 location = /favicon.ico {
1015 log_not_found off;
1116 access_log off;
Original file line number Diff line number Diff line change 77 worker_connections 1024 ;
88}
99
10-
1110http {
1211 proxy_temp_path /tmp/proxy_temp;
1312 client_body_temp_path /tmp/client_temp;
1817 include /etc/nginx/mime.types ;
1918 default_type application/octet-stream ;
2019
21- set_real_ip_from 172.16.0.0 /8 ;
20+ set_real_ip_from 172.16.0.0 /16 ;
2221 real_ip_recursive on;
2322 real_ip_header X-Forwarded-For;
2423
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ server {
66
77 client_max_body_size ${NGINX_MAX_BODY_SIZE};
88
9+ # This also needs to be set in the single server tag and not only in http.
10+ set_real_ip_from 172.16.0.0/16;
11+ real_ip_recursive on;
12+ real_ip_header X-Forwarded-For;
13+
914 location = /favicon.ico {
1015 log_not_found off;
1116 access_log off;
Original file line number Diff line number Diff line change 77 worker_connections 1024 ;
88}
99
10-
1110http {
1211 proxy_temp_path /tmp/proxy_temp;
1312 client_body_temp_path /tmp/client_temp;
1817 include /etc/nginx/mime.types ;
1918 default_type application/octet-stream ;
2019
21- set_real_ip_from 172.16.0.0 /8 ;
20+ set_real_ip_from 172.16.0.0 /16 ;
2221 real_ip_recursive on;
2322 real_ip_header X-Forwarded-For;
2423
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ server {
66
77 client_max_body_size ${NGINX_MAX_BODY_SIZE};
88
9+ # This also needs to be set in the single server tag and not only in http.
10+ set_real_ip_from 172.16.0.0/16;
11+ real_ip_recursive on;
12+ real_ip_header X-Forwarded-For;
13+
914 location / {
1015 # try to serve file directly, fallback to app.php
1116 #try_files $uri /app.php$is_args$args;
You can’t perform that action at this time.
0 commit comments