##Install Apache Httpd password generation tool
$ yum install httpd-tools -y
$ mkdir -p /usr/local/nginx/conf/passwd $ htpasswd -c -b /usr/local/nginx/conf/passwd/kibana.passwd Userrenwolecom GN5SKorJ Adding password for user Userrenwolecom
$ vim /usr/local/nginx/conf/nginx.conf server { listen 10.28.204.65:5601; auth_basic "Restricted Access"; auth_basic_user_file /usr/local/nginx/conf/passwd/kibana.passwd; location / { proxy_pass http://10.28.204.65: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; } }
$ vim /usr/local/kibana/config/kibana.yml server.host: "10.28.204.65"
$ systemctl restart kibana.service $ systemctl restart nginx.service
The above is the detailed content of How to implement kibana login authentication through Nginx reverse proxy. For more information, please follow other related articles on the PHP Chinese website!