2019-04-21 21:13:03 +00:00
|
|
|
{
|
|
|
|
cache => {
|
|
|
|
schedule => $ENV{TRAVELYNX_IRIS_CACHE} // '/var/cache/travelynx/iris',
|
|
|
|
realtime => $ENV{TRAVELYNX_IRISRT_CACHE} // '/var/cache/travelynx/iris-rt',
|
|
|
|
},
|
|
|
|
db => {
|
2019-05-05 09:22:19 +00:00
|
|
|
host => $ENV{TRAVELYNX_DB_HOST} // die("Please set TRAVELYNX_DB_HOST"),
|
2019-04-21 21:13:03 +00:00
|
|
|
database => $ENV{TRAVELYNX_DB_NAME} // 'travelynx',
|
|
|
|
user => $ENV{TRAVELYNX_DB_USERNAME} // 'travelynx',
|
|
|
|
password => $ENV{TRAVELYNX_DB_PASSWORD} // die("Please set TRAVELYNX_DB_PASSWORD"),
|
|
|
|
},
|
|
|
|
hypnotoad => {
|
|
|
|
accepts => $ENV{TRAVELYNX_HYPNOTOAD_ACCEPTS} // 100,
|
|
|
|
clients => $ENV{TRAVELYNX_HYPNOTOAD_CLIENTS} // 10,
|
|
|
|
listen => [ $ENV{TRALELYNX_HYPNOTOAD_LISTEN} // 'http://*:8093' ],
|
|
|
|
pid_file => '/tmp/travelynx.pid',
|
|
|
|
workers => $ENV{TRAVELYNX_HYPNOTOAD_WORKERS} // 2,
|
|
|
|
spare => $ENV{TRAVELYNX_HYPNOTOAD_SPARE} // 2,
|
|
|
|
},
|
|
|
|
mail => {
|
|
|
|
disabled => $ENV{TRAVELYNX_MAIL_DISABLE} // 0,
|
|
|
|
},
|
|
|
|
secrets => [
|
|
|
|
$ENV{TRAVELYNX_SECRET} // die("Please set TRAVELYNX_SECRET"),
|
|
|
|
],
|
|
|
|
};
|