From 542a1db1106aaafe16203ffdb3bbac792d17a96c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 23 Mar 2019 22:38:57 +0100 Subject: more configuration options --- index.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'index.pl') diff --git a/index.pl b/index.pl index 6df49ea..7f27c97 100644 --- a/index.pl +++ b/index.pl @@ -1076,9 +1076,11 @@ get '/*station' => \&handle_request; app->config( hypnotoad => { - accepts => 40, + accepts => $ENV{DBFAKEDISPLAY_ACCEPTS} // 100, + clients => $ENV{DBFAKEDISPLAY_CLIENTS} // 10, listen => [ $ENV{DBFAKEDISPLAY_LISTEN} // 'http://*:8092' ], - pid_file => '/tmp/db-fakedisplay.pid', + pid_file => $ENV{DBFAKEDISPLAY_PID_FILE} // '/tmp/db-fakedisplay.pid', + spare => $ENV{DBFAKEDISPLAY_SPARE} // 2, workers => $ENV{DBFAKEDISPLAY_WORKERS} // 2, }, ); -- cgit v1.2.3