Explorar el Código

Add /_nodes route to example reverse proxy config

Aengus Walton hace 12 años
padre
commit
590b213572
Se han modificado 2 ficheros con 6 adiciones y 2 borrados
  1. 1 1
      sample/apache_ldap.conf
  2. 5 1
      sample/nginx.conf

+ 1 - 1
sample/apache_ldap.conf

@@ -31,7 +31,7 @@
   </Proxy>
  
   # Proxy for _aliases and .*/_search
-  <LocationMatch "^(/_aliases|.*/_search|.*/_mapping)$">
+  <LocationMatch "^(/_aliases|/_nodes|.*/_search|.*/_mapping)$">
     ProxyPassMatch http://127.0.0.1:9200
     ProxyPassReverse http://127.0.0.1:9200
   </LocationMatch>

+ 5 - 1
sample/nginx.conf

@@ -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;
@@ -53,4 +57,4 @@ server {
       auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd;
     }
   }
-}
+}