Better elasticsearch proxy settings.
* modules/logstash/templates/kibana.vhost.erb: Set proxy timeouts and allow /_status and /_search. Change-Id: I67f6152bcda5999a27fef07c8428ac12d3a0201c Reviewed-on: https://review.openstack.org/34252 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
f36ada63eb
commit
3d2d1772fe
@ -10,8 +10,8 @@
|
||||
|
||||
<% if proxy_elasticsearch == true %>
|
||||
# Proxy for elasticsearch _aliases, .*/_status, and .*/_search.
|
||||
<LocationMatch "^/elasticsearch/(_aliases|.*/_status|.*/_search)$">
|
||||
ProxyPassMatch http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1
|
||||
<LocationMatch "^/elasticsearch/(_aliases|(.*/)?_status|(.*/)?_search)$">
|
||||
ProxyPassMatch http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 connectiontimeout=5 timeout=120
|
||||
</LocationMatch>
|
||||
ProxyPassReverse /elasticsearch/ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/
|
||||
<% end %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user