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