How to implement kibana login authentication through Nginx reverse proxy

PHPz
Release: 2023-05-12 22:01:17
forward
1398 people have browsed it

How to implement kibana login authentication through Nginx reverse proxy
##Install Apache Httpd password generation tool

$ yum install httpd-tools -y
Copy after login

Generate Kibana authentication password

$ mkdir -p /usr/local/nginx/conf/passwd
$ htpasswd -c -b /usr/local/nginx/conf/passwd/kibana.passwd Userrenwolecom GN5SKorJ
Adding password for user Userrenwolecom
Copy after login

Configure Nginx reverse proxy

Add the following content to the Nginx configuration file (or include it in a new configuration file):

$ 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;
}
}
Copy after login

Configure Kibana

Uncomment the following:

$ vim /usr/local/kibana/config/kibana.yml

server.host: "10.28.204.65"
Copy after login

Restart Kibana and Nginx services to make the configuration effective

$ systemctl restart kibana.service
$ systemctl restart nginx.service
Copy after login

Next, when the browser accesses http://103.28.204.65:5601/, a verification pop-up window will appear. Enter the user password generated above to log in.

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!