add option to set php memory limit

This commit is contained in:
nd 2020-03-04 13:36:24 +01:00
parent 131c67df21
commit be5b2f4bae
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 2 additions and 1 deletions

View file

@ -55,6 +55,7 @@
phpinidefault:
post_max_size: 64M
upload_max_filesize: 64M
memory_limit: 128M
- set_fact:
phpini: "{{ phpinidefault|combine( {} if (nginx.php == True) else nginx.php.ini|d({}) ) }}"

View file

@ -386,7 +386,7 @@ max_input_time = 60
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M
memory_limit = {{ phpini.memory_limit }}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;