Téléverser les fichiers vers "conf"
This commit is contained in:
parent
3553fcab20
commit
7819b48eff
2 changed files with 25 additions and 0 deletions
12
conf/nginx.conf
Normal file
12
conf/nginx.conf
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
13
conf/php-fpm.conf
Normal file
13
conf/php-fpm.conf
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue