Corriger le routage Nginx vers PHP

This commit is contained in:
Alexandre NOEL 2026-09-03 22:56:52 +02:00
commit 72b68793ef
2 changed files with 9 additions and 8 deletions

View file

@ -2,12 +2,13 @@ location __PATH__/ {
alias __INSTALL_DIR__/public/; alias __INSTALL_DIR__/public/;
index index.php; index index.php;
client_max_body_size 260M; client_max_body_size 260M;
try_files $uri $uri/ __PATH__/index.php?$query_string; try_files $uri $uri/ @__APP__;
location ~ /\. { deny all; } location ~ /\. { deny all; }
location = __PATH__/index.php { }
location @__APP__ {
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME __INSTALL_DIR__/public/index.php; fastcgi_param SCRIPT_FILENAME __INSTALL_DIR__/public/index.php;
fastcgi_param HTTP_PROXY ""; fastcgi_param HTTP_PROXY "";
fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock; fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock;
} }
}

View file

@ -5,7 +5,7 @@ id = "globinours"
name = "Globinours" name = "Globinours"
description.en = "Lightweight animal shelter management" description.en = "Lightweight animal shelter management"
description.fr = "Gestion légère et complète pour refuges animaliers" description.fr = "Gestion légère et complète pour refuges animaliers"
version = "1.0.0-rc.3~ynh4" version = "1.0.0-rc.3~ynh5"
maintainers = ["OverSu"] maintainers = ["OverSu"]
[upstream] [upstream]