Erzeuge Konfiguraton aus Template

This commit is contained in:
phil 2022-12-20 20:28:09 +01:00
parent 33110fa482
commit 2949f0b548
4 changed files with 43 additions and 39 deletions

33
templates/lstu.conf Executable file
View file

@ -0,0 +1,33 @@
# vim:set sw=4 ts=4 sts=4 ft=perl expandtab:
{
hypnotoad => {
listen => ['http://0.0.0.0:8080'],
proxy => 1,
},
contact => '{{ lstu_contact }}',
secret => ['lstu_cookie_secret'],
hashed_adminpwd => 'f85cf20922bf5000f38c0ef9832396c53afb17aeab51979c26940bc8fdf0ecc7',
really_delete_urls => 1,
theme => 'milligram',
disable_api => 1,
dbtype => 'mysql',
mysqldb => {
database => '{{ lstu_db }}',
host => '{{ database_host }}',
user => '{{ lstu_db_user }}',
pwd => '{{ lstu_db_password }}',
},
minion => {
enabled => 1,
mysqldb => {
database => '{{ minion_db }}',
host => '{{ database_host }}',
user => '{{ minion_db_user }}',
pwd => '{{ minion_db_password }}',
},
},
};