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"}}