From adf68c66017b34285170816602e3136609f531a2 Mon Sep 17 00:00:00 2001 From: Limezy Date: Mon, 19 Feb 2024 13:45:31 +0700 Subject: [PATCH] Update nginx --- conf/nginx.conf | 2 +- scripts/install | 1 - scripts/upgrade | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 37886f7..fc1bdbe 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -26,7 +26,7 @@ location __PATH__/ { } # Default indexes and catch-all - rewrite ^/(connexion|compte)$ /$1.html; + rewrite ^/(connexion|compte)$ /$1.php; rewrite ^/api/([a-zA-Z0-9_]+)(\?.*)?$ /api/$1.php$2; index index.php index.html; try_files $uri $uri/ $uri.php?$args; diff --git a/scripts/install b/scripts/install index 4025c36..45d3600 100755 --- a/scripts/install +++ b/scripts/install @@ -17,7 +17,6 @@ ynh_script_progression --message="Setting up source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" -ynh_exec_warn_less mkdir "$install_dir/sessions" ynh_exec_warn_less mkdir "$install_dir/soap_cache" ynh_exec_warn_less mkdir "$install_dir/composer" diff --git a/scripts/upgrade b/scripts/upgrade index d2e61bc..073a118 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,7 +29,6 @@ popd # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" --full_replace=1 -ynh_exec_warn_less mkdir "$install_dir/sessions" ynh_exec_warn_less mkdir "$install_dir/soap_cache" ynh_exec_warn_less mkdir "$install_dir/composer"