kibana.nginx 发表于 2019-08-29 nginx配置文件 kibana.conf1234567891011121314151617server { listen 80; server_name <YourKibanaIP>; auth_basic "Restricted Access"; auth_basic_user_file /etc/nginx/htpasswd.users.kibana; location / { proxy_pass http://localhost:5601; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; }} 生成http认证用户1echo "kadmin:`openssl passwd -apr1`" | sudo tee -a ./htpasswd.users.kibana