Skip to content

Commit

Permalink
Trust real IP from any private network address (e.g. haproxy running …
Browse files Browse the repository at this point in the history
…on another container).
  • Loading branch information
mrmachine committed Nov 14, 2018
1 parent 9f601e6 commit e625329
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ixc_django_docker/etc/nginx.tmpl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ http {
real_ip_header X-Forwarded-For;
real_ip_recursive on;
set_real_ip_from 127.0.0.1;
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;

# Support websockets.
proxy_http_version 1.1;
Expand Down

0 comments on commit e625329

Please sign in to comment.