Files
computer-playbook/roles/web-app-wordpress/templates/upload.ini.j2
kevinveenbirkenbachandClaude Opus 5.5 b56b0551aa fix(web-app-wordpress): size PHP's memory_limit from the container, not the upload
upload.ini set memory_limit to WORDPRESS_MAX_UPLOAD_SIZE, the same 256M
as upload_max_filesize and post_max_size, so the memory a request may
use depended on how large an upload may be. It is now a quarter of the
service's mem_limit through lookup('service_memory_mb'), which renders
384M beside the 1.5g container. The upload sizes keep their variable.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 01:40:20 +02:00

8 lines
289 B
Django/Jinja

file_uploads = On
memory_limit = {{ WORDPRESS_PHP_MEMORY_LIMIT }}
upload_max_filesize = {{ WORDPRESS_MAX_UPLOAD_SIZE }}
post_max_size = {{ WORDPRESS_MAX_UPLOAD_SIZE }}
max_execution_time = 300
; Use msmtp as the Mail Transfer Agent
sendmail_path = "/usr/bin/msmtp -t"