2019-04-17 01:13:14 +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'.
|
|
|
|
|
2019-04-13 10:17:19 +00:00
|
|
|
{
|
2019-04-17 01:13:14 +00:00
|
|
|
# Cache directories for schedule and realtime data. Mandatory. The parent
|
|
|
|
# directory ('/var/cache/travelynx' in this case) must already exist.
|
2019-04-13 10:17:19 +00:00
|
|
|
cache => {
|
|
|
|
schedule => '/var/cache/travelynx/iris',
|
|
|
|
realtime => '/var/cache/travelynx/iris-rt',
|
|
|
|
},
|
2019-04-17 01:13:14 +00:00
|
|
|
|
|
|
|
# Database configuration. host and port are optional
|
|
|
|
# (defaulting to localhost:5432), the rest is mandatory.
|
2019-04-13 10:17:19 +00:00
|
|
|
db => {
|
|
|
|
host => 'localhost',
|
2019-04-17 01:13:14 +00:00
|
|
|
port => 5432,
|
2019-04-13 10:17:19 +00:00
|
|
|
database => 'travelynx',
|
|
|
|
user => 'travelynx',
|
|
|
|
password => die("Changeme!"),
|
|
|
|
},
|
2019-04-17 01:13:14 +00:00
|
|
|
|
|
|
|
# See the Mojo::Server::Hypnotoad manual for details on the following
|
|
|
|
# settings.
|
2019-04-13 10:17:19 +00:00
|
|
|
hypnotoad => {
|
|
|
|
accepts => 100,
|
|
|
|
clients => 10,
|
|
|
|
listen => [ 'http://127.0.0.1:8093' ],
|
|
|
|
pid_file => '/tmp/travelynx.pid',
|
|
|
|
workers => 2,
|
|
|
|
spare => 2,
|
|
|
|
},
|
2019-04-17 01:13:14 +00:00
|
|
|
|
2020-03-13 17:28:13 +00:00
|
|
|
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 => die("Changeme!"),
|
|
|
|
},
|
|
|
|
|
2019-04-17 01:13:14 +00:00
|
|
|
# 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.
|
2019-04-13 10:17:19 +00:00
|
|
|
secrets => [
|
|
|
|
die("Changeme!"),
|
|
|
|
],
|
2019-04-17 01:13:14 +00:00
|
|
|
|
2019-04-14 21:33:20 +00:00
|
|
|
version => qx{git describe --dirty} // 'experimental',
|
2019-04-13 10:17:19 +00:00
|
|
|
};
|