Skip to content

Commit

Permalink
Add X-Forwarded-For
Browse files Browse the repository at this point in the history
  • Loading branch information
vincetse committed Apr 8, 2017
1 parent 8fd495a commit 51bfbbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ server {
listen 80 default_server;
listen [::]:80 default_server;

access_log /dev/stdout;
# get real client IP address
real_ip_header X-Forwarded-For;
access_log /dev/stdout main;
default_type 'text/plain';

# Everything is a 200
Expand Down

0 comments on commit 51bfbbf

Please sign in to comment.