File tree Expand file tree Collapse file tree 17 files changed +17
-32
lines changed
Expand file tree Collapse file tree 17 files changed +17
-32
lines changed Original file line number Diff line number Diff line change 1717 include /etc/nginx/mime.types ;
1818 default_type application/octet-stream ;
1919
20- set_real_ip_from 172.16.0.0 /16 ;
21- real_ip_recursive on;
22- real_ip_header X-Forwarded-For;
20+ # Note: set_real_ip_from is only set in the server block to make i configurable
2321
2422 log_format main '$http_x_real_ip - $remote_user [$time_local] "$request" '
2523 '$status $body_bytes_sent "$http_referer" '
Original file line number Diff line number Diff line change 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.
109 set_real_ip_from 172.16.0.0/16;
10+ set_real_ip_from ${NGINX_SET_REAL_IP_FROM:-192.168.39.0/24};
1111 real_ip_recursive on;
1212 real_ip_header X-Forwarded-For;
1313
Original file line number Diff line number Diff line change 1717 include /etc/nginx/mime.types ;
1818 default_type application/octet-stream ;
1919
20- set_real_ip_from 172.16.0.0 /16 ;
21- real_ip_recursive on;
22- real_ip_header X-Forwarded-For;
20+ # Note: set_real_ip_from is only set in the server block to make i configurable
2321
2422 log_format main '$http_x_real_ip - $remote_user [$time_local] "$request" '
2523 '$status $body_bytes_sent "$http_referer" '
Original file line number Diff line number Diff line change 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.
109 set_real_ip_from 172.16.0.0/16;
10+ set_real_ip_from ${NGINX_SET_REAL_IP_FROM:-192.168.39.0/24};
1111 real_ip_recursive on;
1212 real_ip_header X-Forwarded-For;
1313
Original file line number Diff line number Diff line change 1717 include /etc/nginx/mime.types ;
1818 default_type application/octet-stream ;
1919
20- set_real_ip_from 172.16.0.0 /16 ;
21- real_ip_recursive on;
22- real_ip_header X-Forwarded-For;
20+ # Note: set_real_ip_from is only set in the server block to make i configurable
2321
2422 log_format main '$http_x_real_ip - $remote_user [$time_local] "$request" '
2523 '$status $body_bytes_sent "$http_referer" '
Original file line number Diff line number Diff line change 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.
109 set_real_ip_from 172.16.0.0/16;
10+ set_real_ip_from ${NGINX_SET_REAL_IP_FROM:-192.168.39.0/24};
1111 real_ip_recursive on;
1212 real_ip_header X-Forwarded-For;
1313
Original file line number Diff line number Diff line change 1717 include /etc/nginx/mime.types ;
1818 default_type application/octet-stream ;
1919
20- set_real_ip_from 172.16.0.0 /16 ;
21- real_ip_recursive on;
22- real_ip_header X-Forwarded-For;
20+ # Note: set_real_ip_from is only set in the server block to make i configurable
2321
2422 log_format main '$http_x_real_ip - $remote_user [$time_local] "$request" '
2523 '$status $body_bytes_sent "$http_referer" '
Original file line number Diff line number Diff line change 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.
109 set_real_ip_from 172.16.0.0/16;
10+ set_real_ip_from ${NGINX_SET_REAL_IP_FROM:-192.168.39.0/24};
1111 real_ip_recursive on;
1212 real_ip_header X-Forwarded-For;
1313
Original file line number Diff line number Diff line change 1717 include /etc/nginx/mime.types ;
1818 default_type application/octet-stream ;
1919
20- set_real_ip_from 172.16.0.0 /16 ;
21- real_ip_recursive on;
22- real_ip_header X-Forwarded-For;
20+ # Note: set_real_ip_from is only set in the server block to make i configurable
2321
2422 log_format main '$http_x_real_ip - $remote_user [$time_local] "$request" '
2523 '$status $body_bytes_sent "$http_referer" '
Original file line number Diff line number Diff line change 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.
109 set_real_ip_from 172.16.0.0/16;
10+ set_real_ip_from ${NGINX_SET_REAL_IP_FROM:-192.168.39.0/24};
1111 real_ip_recursive on;
1212 real_ip_header X-Forwarded-For;
1313
You can’t perform that action at this time.
0 commit comments