From eea68cad9c2e87bad9e789a72c6d158a7bb017e9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 26 Feb 2021 03:07:55 +0100 Subject: [PATCH] Apply example_ynh --- check_process | 5 ----- conf/nginx.conf | 2 +- scripts/install | 2 +- scripts/upgrade | 1 - 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/check_process b/check_process index eb98ed67..322620c8 100644 --- a/check_process +++ b/check_process @@ -24,13 +24,8 @@ upgrade=1 from_commit=9c7d0ff114bb0bd3482901fde4bd82b494aa2e6d backup_restore=1 multi_instance=1 - # This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version. - # incorrect_path=1 port_already_use=0 change_url=0 -;;; Levels - # If the level 5 (Package linter) is forced to 1. Please add justifications here. - Level 5=auto ;;; Options Email=jean-baptiste@holcroft.fr;yalh@yahoo.com Notification=all diff --git a/conf/nginx.conf b/conf/nginx.conf index e59b31c8..0011635f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,7 +2,6 @@ location __PATH__/ { # Path to source alias __FINALPATH__/public/ ; - try_files $uri $uri/ @pixelfed; # Force usage of https if ($scheme = http) { @@ -14,6 +13,7 @@ location __PATH__/ { # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file client_max_body_size 50M; + try_files $uri $uri/ @pixelfed; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; diff --git a/scripts/install b/scripts/install index ec3bd055..acaca85b 100644 --- a/scripts/install +++ b/scripts/install @@ -210,7 +210,7 @@ ynh_supervisor_action --service_name="${app}-horizon" --action="reload" --log_pa #================================================= # SETUP SSOWAT #================================================= -ynh_script_progression --message="Configuring SSOwat..." +ynh_script_progression --message="Configuring permissions..." # Make app public if necessary if [ $is_public -eq 1 ] diff --git a/scripts/upgrade b/scripts/upgrade index f71be0aa..9e4a65af 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -21,7 +21,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) admin=$(ynh_app_setting_get --app=$app --key=admin) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) language=$(ynh_app_setting_get --app=$app --key=language) db_name=$(ynh_app_setting_get --app=$app --key=db_name)