December 2017
Intermediate to advanced
364 pages
7h 30m
English
The following configuration is to enable basic authentication for Kibana using nginx reverse proxy:
server { listen 80; server_name localhost; auth_basic "Restricted Access"; auth_basic_user_file /etc/nginx/htpasswd.users; 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; }}
Setting up and configuring the nginx service looks as follows:
#command: htpasswd -c /etc/nginx/htpasswd.users- name: htpasswd generation htpasswd: path: "/etc/nginx/htpasswd.users" name: "{{ basic_auth_username }}" password: "{{ basic_auth_password }}" owner: root group: root ...