From a50443cd8da5a6de830c57bc631170d67ef70cb1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 27 Feb 2021 16:32:46 +0100 Subject: [PATCH] Fix --- conf/nginx.conf | 3 +-- scripts/remove | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f6859db..a2c407d 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,4 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { # Force usage of https if ($scheme = http) { diff --git a/scripts/remove b/scripts/remove index e967107..9ae5c0f 100755 --- a/scripts/remove +++ b/scripts/remove @@ -61,16 +61,15 @@ ynh_remove_nginx_config #================================================= # CLOSE A PORT #================================================= +ynh_script_progression --message="Closing ports..." --weight=1 if yunohost firewall list | grep -q "\- $port$" then - ynh_script_progression --message="Closing port $port..." --weight=1 ynh_exec_warn_less yunohost firewall disallow TCP $port fi if yunohost firewall list | grep -q "\- $turn_port$" then - ynh_script_progression --message="Closing port $turn_port..." --weight=1 ynh_exec_warn_less yunohost firewall disallow both $turn_port fi