Verified Commit 016db305 authored by Luc Didry's avatar Luc Didry

Fix #43 - Missing default db_path

This commit is dedicated to Simon Lefort, who is supporting me with Ğ1.
Many thanks :-)
parent 7a0e602a
Pipeline #69629 passed with stages
in 7 minutes and 25 seconds
Revision history for Perl application Lstu
0.17-3 2018-08-20
- Fix missing default db_path
0.17-2 2018-05-15
- Add ability to respond to /robots.txt either by sending the file if it exists or by answering 404
......
......@@ -27,6 +27,7 @@ sub startup {
},
session_duration => 3600,
dbtype => 'sqlite',
db_path => 'lstu.db',
max_redir => 2,
skip_spamhaus => 0,
memcached_servers => [],
......
......@@ -23,25 +23,28 @@ sub run {
my $config = $c->app->plugin('Config', {
file => $cfile,
default => {
prefix => '/',
provisioning => 100,
provis_step => 5,
length => 8,
secret => ['hfudsifdsih'],
page_offset => 10,
theme => 'default',
ban_min_strike => 3,
ban_whitelist => [],
minion => {
prefix => '/',
provisioning => 100,
provis_step => 5,
length => 8,
secret => ['hfudsifdsih'],
page_offset => 10,
theme => 'default',
ban_min_strike => 3,
ban_whitelist => [],
minion => {
enabled => 0,
db_path => 'minion.db'
},
session_duration => 3600,
dbtype => 'sqlite',
max_redir => 2,
skip_spamhaus => 0,
memcached_servers => [],
csp => "default-src 'none' ; script-src 'self' ; style-src 'self' ; img-src 'self' data: ; font-src 'self'",
session_duration => 3600,
dbtype => 'sqlite',
db_path => 'lstu.db',
max_redir => 2,
skip_spamhaus => 0,
memcached_servers => [],
x_frame_options => 'DENY',
x_content_type_options => 'nosniff',
x_xss_protection => '1; mode=block',
}
});
......
......@@ -36,6 +36,7 @@ sub startup {
},
session_duration => 3600,
dbtype => 'sqlite',
db_path => 'lstu.db',
max_redir => 2,
skip_spamhaus => 0,
memcached_servers => [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment