Configure landing page and admin dashboard

This commit is contained in:
2026-04-18 16:34:02 +04:00
parent d789091d8a
commit 200af9412a
3 changed files with 22 additions and 1 deletions

View File

@@ -16,3 +16,8 @@ node.default['blossom']['list']['enabled'] = true
node.default['blossom']['list']['require_auth'] = true node.default['blossom']['list']['require_auth'] = true
node.default['blossom']['list']['allow_list_others'] = false node.default['blossom']['list']['allow_list_others'] = false
node.default['blossom']['delete']['require_auth'] = true 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

View File

@@ -63,7 +63,12 @@ template "#{node['blossom']['install_dir']}/config.yml" do
list_enabled: node['blossom']['list']['enabled'], list_enabled: node['blossom']['list']['enabled'],
list_require_auth: node['blossom']['list']['require_auth'], list_require_auth: node['blossom']['list']['require_auth'],
list_allow_others: node['blossom']['list']['allow_list_others'], 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 notifies :restart, 'service[blossom]', :delayed
end end

View File

@@ -49,3 +49,14 @@ list:
delete: delete:
requireAuth: <%= @delete_require_auth %> requireAuth: <%= @delete_require_auth %>
landing:
enabled: <%= @landing_enabled %>
title: "<%= @landing_title %>"
<% if @dashboard_enabled %>
dashboard:
enabled: true
username: "<%= @dashboard_username %>"
password: "<%= @dashboard_password %>"
<% end %>