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