bundlewrap/bundles/travelynx/files/travelynx.conf

50 lines
1.2 KiB
Text
Raw Permalink Normal View History

2020-08-19 16:43:32 +00:00
# vim:ft=perl
# travelynx.conf must be a valid perl hash reference. String values must be
# quoted and hash items must end with a comma. You can access environment
# variables via $ENV, e.g. by writing $ENV{TRAVELYNX_DB_HOST} instead of
# 'localhost'.
{
base_url => Mojo::URL->new('https://${domain}'),
2020-08-19 16:43:32 +00:00
cache => {
schedule => '/var/cache/travelynx/iris',
realtime => '/var/cache/travelynx/iris-rt',
},
db => {
host => '${database.get('host', 'localhost')}',
port => 5432,
database => '${database['database']}',
user => '${database['username']}',
password => '${database['password']}',
},
hypnotoad => {
accepts => 100,
clients => 10,
2020-09-20 08:29:19 +00:00
listen => [ 'http://127.0.0.1:22020' ],
2020-08-19 16:43:32 +00:00
pid_file => '/var/cache/travelynx/travelynx.pid',
workers => ${workers},
spare => ${spare_workers},
},
mail => {
from => '${mail_from}',
},
ref => {
issues => 'https://github.com/derf/travelynx/issues',
source => 'https://github.com/derf/travelynx',
},
2020-08-19 16:43:32 +00:00
secrets => [
'${cookie_secret}',
% for i in sorted(additional_cookie_secrets):
'${i}',
% endfor
2020-08-19 16:43:32 +00:00
],
version => '${version}',
2020-08-19 16:43:32 +00:00
};