Skip to content

Commit

Permalink
Add support for nginx reverse proxy to kibana.
Browse files Browse the repository at this point in the history
Kibana needs a few extra headers in order to handle reverse proxy
via nginx.  See: elastic/kibana#1653
  • Loading branch information
Alexander R. Saint Croix committed Apr 14, 2016
1 parent 0254f5b commit 97e0d55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions containers/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ http {
proxy_set_header X-Real-IP $remote_addr;
}

location /kibana {
location /kibana/ {
proxy_pass http://kibana:5601/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
# kibana issue 1653
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}

0 comments on commit 97e0d55

Please sign in to comment.