Explorar o código

Fix nginx.conf after switching dashboard load to GET

Rashid Khan %!s(int64=12) %!d(string=hai) anos
pai
achega
a428f9e5de
Modificáronse 1 ficheiros con 11 adicións e 5 borrados
  1. 11 5
      sample/nginx.conf

+ 11 - 5
sample/nginx.conf

@@ -38,13 +38,19 @@ server {
   location ~ ^/kibana-int/dashboard/.*$ {
     proxy_pass http://127.0.0.1:9200;
     proxy_read_timeout 90;
-    auth_basic "Restricted";
-    auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd;
+    limit_except GET {                                                          
+      proxy_pass http://127.0.0.1:9200;                                         
+      auth_basic "Restricted";                                                  
+      auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd;          
+    }
   }
   location ~ ^/kibana-int/temp.*$ {
     proxy_pass http://127.0.0.1:9200;
     proxy_read_timeout 90;
-    auth_basic "Restricted";
-    auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd;
+    limit_except GET {
+      proxy_pass http://127.0.0.1:9200;
+      auth_basic "Restricted";
+      auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd;
+    }
   }
-}
+}