Procházet zdrojové kódy

Added _mapping proxy settings

Rashid Khan před 12 roky
rodič
revize
02f2ff29f1
2 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 1 1
      sample/apache_ldap.conf
  2. 4 0
      sample/nginx.conf

+ 1 - 1
sample/apache_ldap.conf

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

+ 4 - 0
sample/nginx.conf

@@ -29,6 +29,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 ~ ^/.*/_mapping$ {
+    proxy_pass http://127.0.0.1:9200;
+    proxy_read_timeout 90;
+  }
   
   
   # Password protected end points
   # Password protected end points
   location ~ ^/kibana-int/dashboard/.*$ {
   location ~ ^/kibana-int/dashboard/.*$ {