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'.
|
|
|
|
|
|
|
|
{
|
|
|
|
# Cache directories for schedule and realtime data. Mandatory. The parent
|
|
|
|
# directory ('/var/cache/travelynx' in this case) must already exist.
|
|
|
|
cache => {
|
|
|
|
schedule => '/var/cache/travelynx/iris',
|
|
|
|
realtime => '/var/cache/travelynx/iris-rt',
|
|
|
|
},
|
|
|
|
|
|
|
|
# Database configuration. host and port are optional
|
|
|
|
# (defaulting to localhost:5432), the rest is mandatory.
|
|
|
|
db => {
|
|
|
|
host => '${database.get('host', 'localhost')}',
|
|
|
|
port => 5432,
|
|
|
|
database => '${database['database']}',
|
|
|
|
user => '${database['username']}',
|
|
|
|
password => '${database['password']}',
|
|
|
|
},
|
|
|
|
|
|
|
|
# See the Mojo::Server::Hypnotoad manual for details on the following
|
|
|
|
# settings.
|
|
|
|
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 => {
|
|
|
|
# If you want to disable outgoing mail for development purposes,
|
|
|
|
# uncomment the following line. Mails will instead be logged as
|
|
|
|
# Mojolicious "info" messages, causing their content to be printed on
|
|
|
|
# stdout.
|
|
|
|
## disabled => 1,
|
|
|
|
|
|
|
|
# Otherwise, specify the sender ("From" field) for mail sent by travelynx
|
|
|
|
# here. E.g. 'Travelynx <mail@example.org>'
|
|
|
|
from => '${mail_from}',
|
|
|
|
},
|
|
|
|
|
|
|
|
# Secrets used for cookie signing and verification. Must contain at least
|
|
|
|
# one random string. If you specify several strings, the first one will
|
|
|
|
# be used for signing new cookies, and the remaining ones will still be
|
|
|
|
# accepted for cookie validation.
|
|
|
|
secrets => [
|
|
|
|
'${cookie_secret}',
|
|
|
|
],
|
|
|
|
|
2020-08-20 07:44:01 +00:00
|
|
|
version => '${version}',
|
2020-08-19 16:43:32 +00:00
|
|
|
};
|