summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-14 12:32:54 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-14 12:32:54 +0200
commita53cdb1324436d19bb5b817fa9d2153f8149d4d6 (patch)
tree9e5c6373833bfa62e887ff8366f975a87b1b2604
parentff86b4c31357b4c93c012c40fa3d5ca511361b31 (diff)
index.pl: fix workers env, allow env to override listen port
-rw-r--r--index.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.pl b/index.pl
index 5dc9037..b4db45c 100644
--- a/index.pl
+++ b/index.pl
@@ -792,9 +792,9 @@ get '/multi/:station' => \&handle_request;
app->config(
hypnotoad => {
accepts => 10,
- listen => ['http://*:8092'],
+ listen => [ $ENV{DBFAKEDISPLAY_LISTEN} // 'http://*:8092' ],
pid_file => '/tmp/db-fakedisplay.pid',
- workers => $ENV{VRRFAKEDISPLAY_WORKERS} // 2,
+ workers => $ENV{DBFAKEDISPLAY_WORKERS} // 2,
},
);