Skip to content

Commit

Permalink
Added X-Remote-IP header to nginx /v1/ endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vynar committed Aug 31, 2016
1 parent 1813447 commit 4ceb325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ http {

# Consul API
location /v1/ {
proxy_pass http://localhost:8500/v1/;
proxy_pass http://localhost:8500/v1/;
add_header X-Remote-IP $remote_addr;
}

# QAN App
Expand Down

0 comments on commit 4ceb325

Please sign in to comment.