Configure landing page and admin dashboard
This commit is contained in:
@@ -16,3 +16,8 @@ node.default['blossom']['list']['enabled'] = true
|
||||
node.default['blossom']['list']['require_auth'] = true
|
||||
node.default['blossom']['list']['allow_list_others'] = false
|
||||
node.default['blossom']['delete']['require_auth'] = true
|
||||
node.default['blossom']['landing']['enabled'] = true
|
||||
node.default['blossom']['landing']['title'] = 'Blossom Server'
|
||||
node.default['blossom']['dashboard']['enabled'] = false
|
||||
node.default['blossom']['dashboard']['username'] = 'admin'
|
||||
node.default['blossom']['dashboard']['password'] = nil
|
||||
|
||||
@@ -63,7 +63,12 @@ template "#{node['blossom']['install_dir']}/config.yml" do
|
||||
list_enabled: node['blossom']['list']['enabled'],
|
||||
list_require_auth: node['blossom']['list']['require_auth'],
|
||||
list_allow_others: node['blossom']['list']['allow_list_others'],
|
||||
delete_require_auth: node['blossom']['delete']['require_auth']
|
||||
delete_require_auth: node['blossom']['delete']['require_auth'],
|
||||
landing_enabled: node['blossom']['landing']['enabled'],
|
||||
landing_title: node['blossom']['landing']['title'],
|
||||
dashboard_enabled: node['blossom']['dashboard']['enabled'],
|
||||
dashboard_username: node['blossom']['dashboard']['username'],
|
||||
dashboard_password: node['blossom']['dashboard']['password']
|
||||
)
|
||||
notifies :restart, 'service[blossom]', :delayed
|
||||
end
|
||||
|
||||
@@ -49,3 +49,14 @@ list:
|
||||
|
||||
delete:
|
||||
requireAuth: <%= @delete_require_auth %>
|
||||
|
||||
landing:
|
||||
enabled: <%= @landing_enabled %>
|
||||
title: "<%= @landing_title %>"
|
||||
|
||||
<% if @dashboard_enabled %>
|
||||
dashboard:
|
||||
enabled: true
|
||||
username: "<%= @dashboard_username %>"
|
||||
password: "<%= @dashboard_password %>"
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user