使用nginx代理kibana并设置身份验证

添加一个单独的nginx配置文件,设置转发

server {
    listen 8080;
    auth_basic "kibana Access";
    auth_basic_user_file /apps/nginx/conf/htpasswd;     
    location / {
    proxy_pass http://10.26.3.49: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;
    }

展开阅读全文

没有更多推荐了,返回首页