瀏覽代碼

Fix nginx.conf after switching dashboard load to GET

Rashid Khan 12 年之前
父節點
當前提交
a428f9e5de
共有 1 個文件被更改,包括 11 次插入5 次删除
  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;
+    }
   }
-}
+}