summaryrefslogtreecommitdiff
path: root/examples/docker/travelynx.conf
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-05 11:22:38 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-05 11:22:38 +0200
commit8c23c960426bad133484bf127f5fc5b56af8e8c7 (patch)
treed96d4ef00707088913fed0b97fb03eb56a2064c0 /examples/docker/travelynx.conf
parent4696f8d68e130632cbcdb14c2bb1dfe71355e9f6 (diff)
parenta1a0f33cab731eb60051af6bd5ae78cd6660b76f (diff)
Merge branch 'feuerrot-dockerize'
Addresses #4
Diffstat (limited to 'examples/docker/travelynx.conf')
-rw-r--r--examples/docker/travelynx.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/docker/travelynx.conf b/examples/docker/travelynx.conf
new file mode 100644
index 0000000..b3dc003
--- /dev/null
+++ b/examples/docker/travelynx.conf
@@ -0,0 +1,26 @@
+{
+ cache => {
+ schedule => $ENV{TRAVELYNX_IRIS_CACHE} // '/var/cache/travelynx/iris',
+ realtime => $ENV{TRAVELYNX_IRISRT_CACHE} // '/var/cache/travelynx/iris-rt',
+ },
+ db => {
+ host => $ENV{TRAVELYNX_DB_HOST} // die("Please set TRAVELYNX_DB_HOST"),
+ 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"),
+ ],
+};