Set default conf values in vroom.pl

This commit is contained in:
Daniel Berteaud 2014-04-04 11:42:59 +02:00
parent d189b2ec06
commit 0001b6da86
1 changed files with 18 additions and 1 deletions

View File

@ -53,7 +53,24 @@ our $components = {
};
app->log->level('info');
our $config = plugin Config => {file => '../conf/vroom.conf'};
our $config = plugin Config => {
file => '../conf/vroom.conf',
default => {
dbi => 'DBI:mysql:database=devroom;host=localhost',
dbUser => 'vroom',
dbPassword => 'vroom',
signalingServer => 'https://vroom.example.com/',
stunServer => 'stun.l.google.com:19302',
realm => 'vroom',
baseUrl => 'https://vroom.example.com/',
emailFrom => 'vroom@example.com',
template => 'default',
inactivityTimeout => 3600,
logLevel => 'info',
sendmail => '/sbin/sendmail'
}
};
app->log->level($config->{logLevel});
plugin I18N => {