From 7819b48eff5a9ba7c678cf5bb004b94423043f88 Mon Sep 17 00:00:00 2001 From: oversu <95a7002b-481b-4ef3-b578-f9c421550aa4@localhost> Date: Thu, 3 Sep 2026 13:58:28 +0200 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"conf"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/nginx.conf | 12 ++++++++++++ conf/php-fpm.conf | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 conf/nginx.conf create mode 100644 conf/php-fpm.conf diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..c8fda70 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,12 @@ +location __PATH__/ { + alias __INSTALL_DIR__/public/; + index index.php; + try_files $uri $uri/ __PATH__/index.php?$query_string; + location ~ /\. { deny all; } + location = __PATH__/index.php { + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME __INSTALL_DIR__/public/index.php; + fastcgi_param HTTP_PROXY ""; + fastcgi_pass unix:/var/run/php/php8.2-fpm-__APP__.sock; + } +} diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf new file mode 100644 index 0000000..9d6d066 --- /dev/null +++ b/conf/php-fpm.conf @@ -0,0 +1,13 @@ +[__APP__] +user = __APP__ +group = __APP__ +listen = /var/run/php/php8.2-fpm-__APP__.sock +listen.owner = www-data +listen.group = www-data +pm = ondemand +pm.max_children = 8 +pm.process_idle_timeout = 10s +php_admin_value[upload_max_filesize] = 250M +php_admin_value[post_max_size] = 260M +php_admin_value[max_execution_time] = 600 +php_admin_value[open_basedir] = __INSTALL_DIR__:__DATA_DIR__:/tmp