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