From 4ceb32553cb8e02ee9969a74fc675a03538f23d7 Mon Sep 17 00:00:00 2001 From: Roman Vynar Date: Wed, 31 Aug 2016 23:56:24 +0300 Subject: [PATCH] Added X-Remote-IP header to nginx /v1/ endpoint. --- nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 4a9359c8d..d6516fbe0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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