From 6da72458b6eec32350cfc631bf741b1705900b0d Mon Sep 17 00:00:00 2001 From: Tom Hatzer <3952168+tomhatzer@users.noreply.github.com> Date: Wed, 18 Jun 2025 12:44:33 +0200 Subject: [PATCH] feat(Laravel): Setting php.ini values in php-fpm.conf (#42) --- laravel-inertia/nixpacks.toml | 4 ++-- laravel/nixpacks.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/laravel-inertia/nixpacks.toml b/laravel-inertia/nixpacks.toml index 58e60ca..5a0801b 100644 --- a/laravel-inertia/nixpacks.toml +++ b/laravel-inertia/nixpacks.toml @@ -97,6 +97,8 @@ pm.min_spare_servers = 4 pm.max_spare_servers = 32 pm.start_servers = 18 clear_env = no +php_admin_value[post_max_size] = 35M +php_admin_value[upload_max_filesize] = 30M ''' "nginx.template.conf" = ''' @@ -166,8 +168,6 @@ http { fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; include $!{nginx}/conf/fastcgi_params; include $!{nginx}/conf/fastcgi.conf; - - fastcgi_param PHP_VALUE "upload_max_filesize=30M \n post_max_size=35M"; } location ~ /\.(?!well-known).* { diff --git a/laravel/nixpacks.toml b/laravel/nixpacks.toml index 58e60ca..5a0801b 100644 --- a/laravel/nixpacks.toml +++ b/laravel/nixpacks.toml @@ -97,6 +97,8 @@ pm.min_spare_servers = 4 pm.max_spare_servers = 32 pm.start_servers = 18 clear_env = no +php_admin_value[post_max_size] = 35M +php_admin_value[upload_max_filesize] = 30M ''' "nginx.template.conf" = ''' @@ -166,8 +168,6 @@ http { fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; include $!{nginx}/conf/fastcgi_params; include $!{nginx}/conf/fastcgi.conf; - - fastcgi_param PHP_VALUE "upload_max_filesize=30M \n post_max_size=35M"; } location ~ /\.(?!well-known).* {