diff --git a/sample/nginx.conf b/sample/nginx.conf index 50a365ade84f4..3af4ea2d0b63e 100644 --- a/sample/nginx.conf +++ b/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; + } } -} \ No newline at end of file +}