Skip to content

Commit

Permalink
fix auth_file
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberflow committed Oct 7, 2014
1 parent c93cdda commit 2763fbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
default['kibana']['nginx']['auth'] = false

#<> The path to auth basic file
default['kibana']['nginx']['auth_path'] = '/etc/nginx/htpasswd.users'
default['kibana']['auth_file'] = '/etc/nginx/htpasswd.users'

#<> The path to the SSL certificate file.
default['kibana']['nginx']['ssl_certificate'] = nil
Expand Down
2 changes: 1 addition & 1 deletion recipes/nginx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'ssl_session_timeout' => node['kibana']['nginx']['ssl_session_timeout'],
'proxy' => node['kibana']['nginx']['proxy'],
'auth' => node['kibana']['nginx']['auth'],
'auth_path' => node['kibana']['auth_path']
'auth_file' => node['kibana']['auth_file']
)
end

Expand Down
2 changes: 1 addition & 1 deletion templates/default/nginx.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ server {
index index.html index.htm;
<% if @auth %>
auth_basic "Kibana Auth";
auth_basic_user_file <%= @auth_path %>;
auth_basic_user_file <%= @auth_file %>;
<% end %>
}

Expand Down

0 comments on commit 2763fbc

Please sign in to comment.