From 80a6317ac55de020f606a5ca114466d3f0100511 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Apr 2019 12:17:19 +0200 Subject: Use travelynx.conf for configuration and secrets This avoids having to specify secrets in the environment, where they can leak easily. --- examples/travelynx.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/travelynx.conf (limited to 'examples/travelynx.conf') diff --git a/examples/travelynx.conf b/examples/travelynx.conf new file mode 100644 index 0000000..ae61f7b --- /dev/null +++ b/examples/travelynx.conf @@ -0,0 +1,23 @@ +{ + cache => { + schedule => '/var/cache/travelynx/iris', + realtime => '/var/cache/travelynx/iris-rt', + }, + db => { + host => 'localhost', + database => 'travelynx', + user => 'travelynx', + password => die("Changeme!"), + }, + hypnotoad => { + accepts => 100, + clients => 10, + listen => [ 'http://127.0.0.1:8093' ], + pid_file => '/tmp/travelynx.pid', + workers => 2, + spare => 2, + }, + secrets => [ + die("Changeme!"), + ], +}; -- cgit v1.2.3