From a53cdb1324436d19bb5b817fa9d2153f8149d4d6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 14 Oct 2015 12:32:54 +0200 Subject: index.pl: fix workers env, allow env to override listen port --- index.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.pl') 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, }, ); -- cgit v1.2.3