ubuntu 14.04中Elasticsearch 2.3 中 Nginx 权限认证
events {worker_connections1024;
}
http {
upstream elasticsearch {
server wb-elk:9200;
}
server {
listen 8080;
auth_basic "Protected Elasticsearch";
auth_basic_user_file /etc/nginx/conf.d/pass_file;
location / {
proxy_pass http://elasticsearch;
proxy_redirect off;
}
}
}
页:
[1]