Skip to content

Commit

Permalink
Merge pull request #576 from kopf/add_nodes_route_to_reverse_proxy_ex…
Browse files Browse the repository at this point in the history
…ample

Add /_nodes route to example reverse proxy config
  • Loading branch information
Rashid Khan committed Oct 16, 2013
2 parents 942fd2d + d399387 commit 2b7f92f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
14 changes: 7 additions & 7 deletions sample/apache_ldap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
</Proxy>

# Proxy for _aliases and .*/_search
<LocationMatch "^(/_aliases|.*/_search|.*/_mapping)$">
ProxyPassMatch http://127.0.0.1:9200
ProxyPassReverse http://127.0.0.1:9200
<LocationMatch "^/(_nodes|_aliases|_search|.*/_search|_mapping|.*/_mapping)$">
ProxyPassMatch http://127.0.0.1:9200/$1
ProxyPassReverse http://127.0.0.1:9200/$1
</LocationMatch>

# Proxy for kibana-int/{dashboard,temp} stuff (if you don't want auth on /, then you will want these to be protected)
<LocationMatch "^(/kibana-int/dashboard/|/kibana-int/temp).*$">
ProxyPassMatch http://127.0.0.1:9200
ProxyPassReverse http://127.0.0.1:9200
<LocationMatch "^/(kibana-int/dashboard/|kibana-int/temp)(.*)$">
ProxyPassMatch http://127.0.0.1:9200/$1$2
ProxyPassReverse http://127.0.0.1:9200/$1$2
</LocationMatch>

# Optional disable auth for a src IP (eg: your monitoring host or subnet)
Expand Down
6 changes: 5 additions & 1 deletion sample/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ server {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location ~ ^/_nodes$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location ~ ^/.*/_search$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
Expand Down Expand Up @@ -53,4 +57,4 @@ server {
auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd;
}
}
}
}

0 comments on commit 2b7f92f

Please sign in to comment.