From 4d86448d0d3ac2828a131dbe87d5d5e98d82c8c8 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 16 Feb 2017 15:30:19 +0100 Subject: [PATCH] add memory_limit var --- README.md | 5 +++++ rootfs/etc/confd/conf.d/00_memory_limit.ini.toml | 3 +++ rootfs/etc/confd/templates/00_memory_limit.ini.tmpl | 1 + 3 files changed, 9 insertions(+) create mode 100644 rootfs/etc/confd/conf.d/00_memory_limit.ini.toml create mode 100644 rootfs/etc/confd/templates/00_memory_limit.ini.tmpl diff --git a/README.md b/README.md index 6d4f655..4a4c663 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,11 @@ The group which runs the fpm process. Maximal upload size. +## PHP_MEMORY_LIMIT +- default: 128M + +Maximum amount of memory that a script is allowed to allocate. + ## PHP_ADMIN_VALUES Comma seperated list of php admin values. diff --git a/rootfs/etc/confd/conf.d/00_memory_limit.ini.toml b/rootfs/etc/confd/conf.d/00_memory_limit.ini.toml new file mode 100644 index 0000000..938bf1b --- /dev/null +++ b/rootfs/etc/confd/conf.d/00_memory_limit.ini.toml @@ -0,0 +1,3 @@ +[template] +src = "00_memory_limit.ini.tmpl" +dest = "/etc/php7/conf.d/00_memory_limit.ini" diff --git a/rootfs/etc/confd/templates/00_memory_limit.ini.tmpl b/rootfs/etc/confd/templates/00_memory_limit.ini.tmpl new file mode 100644 index 0000000..180eab4 --- /dev/null +++ b/rootfs/etc/confd/templates/00_memory_limit.ini.tmpl @@ -0,0 +1 @@ +memory_limit = {{ getenv "PHP_MEMORY_LIMIT" "128M"}}