From 93647ef9e3f48b3d22bf3e020e38285ca557cd32 Mon Sep 17 00:00:00 2001 From: oversu <95a7002b-481b-4ef3-b578-f9c421550aa4@localhost> Date: Fri, 4 Sep 2026 11:54:28 +0200 Subject: [PATCH] =?UTF-8?q?Emp=C3=AAcher=20l=E2=80=99exposition=20des=20so?= =?UTF-8?q?urces=20PHP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/nginx.conf | 8 ++++++++ manifest.toml | 2 +- scripts/_common.sh | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index aa7d8a0..f60f512 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,9 +1,17 @@ +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 __PATH__/ { alias __INSTALL_DIR__/public/; index index.php; client_max_body_size 260M; try_files $uri $uri/ @__APP__; location ~ /\. { deny all; } + location ~ \.php$ { return 404; } } location @__APP__ { diff --git a/manifest.toml b/manifest.toml index 5ccf5b6..9b43956 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~ynh8" +version = "1.0.0-rc.3~ynh9" maintainers = ["OverSu"] [upstream] diff --git a/scripts/_common.sh b/scripts/_common.sh index 4c4e9b1..92baf57 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -26,6 +26,8 @@ prepare_persistent_paths() { chown -R "$app:$app" "$data_dir" chmod -R u=rwX,g=rX,o= "$install_dir" chmod -R u=rwX,g=,o= "$data_dir" + chown "$app:www-data" "$data_dir" + chmod 0710 "$data_dir" chown -R "$app:www-data" "$data_dir/media" chmod -R u=rwX,g=rX,o= "$data_dir/media" }