From 72b68793efcb7518e81f3f4d79b4fafd1b6b0b1d Mon Sep 17 00:00:00 2001 From: oversu <95a7002b-481b-4ef3-b578-f9c421550aa4@localhost> Date: Thu, 3 Sep 2026 22:56:52 +0200 Subject: [PATCH] Corriger le routage Nginx vers PHP --- conf/nginx.conf | 15 ++++++++------- manifest.toml | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 2a8c85a..aa7d8a0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,12 +2,13 @@ location __PATH__/ { alias __INSTALL_DIR__/public/; index index.php; client_max_body_size 260M; - try_files $uri $uri/ __PATH__/index.php?$query_string; + try_files $uri $uri/ @__APP__; 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/php__PHP_VERSION__-fpm-__APP__.sock; - } +} + +location @__APP__ { + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME __INSTALL_DIR__/public/index.php; + fastcgi_param HTTP_PROXY ""; + fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock; } diff --git a/manifest.toml b/manifest.toml index 6043e37..385e683 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ id = "globinours" name = "Globinours" description.en = "Lightweight animal shelter management" 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"] [upstream]