Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize kibana login authentication through Nginx reverse proxy

2025-05-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to achieve kibana login authentication through Nginx reverse proxy", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to achieve kibana login authentication through Nginx reverse proxy"!

Install the Apache Httpd password generation tool $yum install httpd-tools-y to generate the Kibana authentication password $mkdir-p / usr/local/nginx/conf/passwd$ htpasswd-c-b / usr/local/nginx/conf/passwd/kibana.passwd Userrenwolecom GN5SKorJAdding password for user Userrenwolecom configure Nginx reverse proxy

Add the following to the Nginx configuration file (or include the new configuration file):

$vim / usr/local/nginx/conf/nginx.confserver {listen 10.28.204.65) 5601 authentic 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 setting header Upgrade $http_upgrade;proxy_set_header Connection 'upgrade';proxy_set_header Host $host;proxy_cache_bypass $http_upgrade;}} configure Kibana

Cancel the following comments:

$vim / usr/local/kibana/config/kibana.ymlserver.host: "10.28.204.65" restart the Kibana and Nginx services to make the configuration effective $systemctl restart kibana.service$ systemctl restart nginx.service

Next, when the browser accesses http://103.28.204.65:5601/, you will be prompted to verify the pop-up window and enter the user password generated above to log in.

At this point, I believe you have a deeper understanding of "how to achieve kibana login authentication through Nginx reverse proxy". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report