From 9be4b2d86229515d12272f1040399e3ca3297344 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 18 May 2017 10:39:00 +0200 Subject: [PATCH] add max_execution_time parameter --- README.md | 5 +++++ rootfs/etc/confd/conf.d/01_max_execution_time.ini.toml | 3 +++ rootfs/etc/confd/templates/01_memory_limit.ini.tmpl.ini.tmpl | 1 + 3 files changed, 9 insertions(+) create mode 100644 rootfs/etc/confd/conf.d/01_max_execution_time.ini.toml create mode 100644 rootfs/etc/confd/templates/01_memory_limit.ini.tmpl.ini.tmpl diff --git a/README.md b/README.md index 2e95495..3d733b1 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,11 @@ Maximal upload size. Maximum amount of memory that a script is allowed to allocate. +## PHP_MAX_EXECUTION_TIME +- default 30 + +Execution time limit for php scripts in seconds. + ## PHP_ADMIN_VALUES Comma seperated list of php admin values. diff --git a/rootfs/etc/confd/conf.d/01_max_execution_time.ini.toml b/rootfs/etc/confd/conf.d/01_max_execution_time.ini.toml new file mode 100644 index 0000000..e494d48 --- /dev/null +++ b/rootfs/etc/confd/conf.d/01_max_execution_time.ini.toml @@ -0,0 +1,3 @@ +[template] +src = "01_memory_limit.ini.tmpl.ini" +dest = "/etc/php7/conf.d/01_memory_limit.ini" diff --git a/rootfs/etc/confd/templates/01_memory_limit.ini.tmpl.ini.tmpl b/rootfs/etc/confd/templates/01_memory_limit.ini.tmpl.ini.tmpl new file mode 100644 index 0000000..482a8ff --- /dev/null +++ b/rootfs/etc/confd/templates/01_memory_limit.ini.tmpl.ini.tmpl @@ -0,0 +1 @@ +max_execution_time = {{ getenv "PHP_MAX_EXECUTION_TIME" "30"}}