aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apache/sites/nowayforward_human.conf.tpl3
-rw-r--r--controllers/archive.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/apache/sites/nowayforward_human.conf.tpl b/apache/sites/nowayforward_human.conf.tpl
index 637ee4f..059a678 100644
--- a/apache/sites/nowayforward_human.conf.tpl
+++ b/apache/sites/nowayforward_human.conf.tpl
@@ -16,6 +16,9 @@
SetEnv PASSWORD ${PASSWORD}
SetEnv MYSQL_UNIX_SOCKET ${MYSQL_UNIX_SOCKET}
+ # 5 minutes
+ TimeOut 300
+
# Project
SetEnv ARCHIVES_DIR ${ARCHIVES_DIR}
diff --git a/controllers/archive.php b/controllers/archive.php
index 54f5f4a..a3afb9f 100644
--- a/controllers/archive.php
+++ b/controllers/archive.php
@@ -6,6 +6,9 @@ use Exception;
use TypeError;
use ValueError;
+// 5 minutes
+set_time_limit(300);
+
function on_post() {
if (!array_key_exists('async', $_POST) || $_POST['async'] !== 'true') {
return;