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'.
|
|
|
|
|
|
|
|
{
|
2022-12-27 12:38:53 +00:00
|
|
|
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}',
|
|
|
|
},
|
|
|
|
|
2022-12-27 12:38:53 +00:00
|
|
|
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}',
|
2023-08-01 19:21:31 +00:00
|
|
|
% for i in sorted(additional_cookie_secrets):
|
|
|
|
'${i}',
|
|
|
|
% endfor
|
2020-08-19 16:43:32 +00:00
|
|
|
],
|
|
|
|
|
2020-08-20 07:44:01 +00:00
|
|
|
version => '${version}',
|
2020-08-19 16:43:32 +00:00
|
|
|
};
|