Commit 2b7f92f0 by Rashid Khan

Merge pull request #576 from kopf/add_nodes_route_to_reverse_proxy_example

Add /_nodes route to example reverse proxy config
parents 942fd2dc d3993875
...@@ -31,15 +31,15 @@ ...@@ -31,15 +31,15 @@
</Proxy> </Proxy>
# Proxy for _aliases and .*/_search # Proxy for _aliases and .*/_search
<LocationMatch "^(/_aliases|.*/_search|.*/_mapping)$"> <LocationMatch "^/(_nodes|_aliases|_search|.*/_search|_mapping|.*/_mapping)$">
ProxyPassMatch http://127.0.0.1:9200 ProxyPassMatch http://127.0.0.1:9200/$1
ProxyPassReverse http://127.0.0.1:9200 ProxyPassReverse http://127.0.0.1:9200/$1
</LocationMatch> </LocationMatch>
# Proxy for kibana-int/{dashboard,temp} stuff (if you don't want auth on /, then you will want these to be protected) # 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).*$"> <LocationMatch "^/(kibana-int/dashboard/|kibana-int/temp)(.*)$">
ProxyPassMatch http://127.0.0.1:9200 ProxyPassMatch http://127.0.0.1:9200/$1$2
ProxyPassReverse http://127.0.0.1:9200 ProxyPassReverse http://127.0.0.1:9200/$1$2
</LocationMatch> </LocationMatch>
# Optional disable auth for a src IP (eg: your monitoring host or subnet) # Optional disable auth for a src IP (eg: your monitoring host or subnet)
......
...@@ -25,6 +25,10 @@ server { ...@@ -25,6 +25,10 @@ server {
proxy_pass http://127.0.0.1:9200; proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90; proxy_read_timeout 90;
} }
location ~ ^/_nodes$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location ~ ^/.*/_search$ { location ~ ^/.*/_search$ {
proxy_pass http://127.0.0.1:9200; proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90; proxy_read_timeout 90;
...@@ -53,4 +57,4 @@ server { ...@@ -53,4 +57,4 @@ server {
auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd; auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd;
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment