summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-23 22:38:57 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-23 22:38:57 +0100
commit542a1db1106aaafe16203ffdb3bbac792d17a96c (patch)
tree0d209f9ada8befcd9d4fa8df273e0d23d16bdad1 /index.pl
parent4cca413880a17d9d31f5ed5c27a29286274ba290 (diff)
more configuration options
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl6
1 files changed, 4 insertions, 2 deletions
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,
},
);