Add public/.user.ini to fix 2MB PHP upload limit on Nixpacks/Coolify

Nixpacks builds its own PHP-FPM + Nginx image and ignores Dockerfile.
PHP-FPM automatically reads .user.ini from the document root (public/),
so this is the correct way to override php.ini settings in Nixpacks.

Raises: upload_max_filesize 2M -> 50M, post_max_size 8M -> 55M

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-09 08:25:58 -06:00
parent 27af72b26e
commit 4b17ea76b1
+4
View File
@@ -0,0 +1,4 @@
upload_max_filesize = 50M
post_max_size = 55M
memory_limit = 256M
max_execution_time = 120