diff --git a/conf/nginx.conf b/conf/nginx.conf index 1648c31..ad28511 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,10 +1,6 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - proxy_pass http://127.0.0.1:__PORT__; proxy_set_header Host $host; diff --git a/manifest.json b/manifest.json index 04f6401..012d429 100644 --- a/manifest.json +++ b/manifest.json @@ -25,7 +25,7 @@ "email": "maxime.bugeia@gmail.com" }], "requirements": { - "yunohost": ">= 4.2.4" + "yunohost": ">= 4.3.0" }, "multi_instance": false, "services": [ @@ -39,8 +39,7 @@ "help": { "en": "Haste can only be installed in a root domain or subdomain", "fr": "Haste ne peut ĂȘtre installĂ© que dans un domaine racine ou un sous-domaine" - }, - "example": "paste.example.com" + } }, { "name": "is_public", diff --git a/scripts/install b/scripts/install index 307e3c2..b24ea50 100755 --- a/scripts/install +++ b/scripts/install @@ -105,7 +105,7 @@ ynh_add_systemd_config pushd "$final_path" ynh_use_nodejs - ynh_exec_warn_less ynh_npm install + ynh_exec_warn_less $ynh_npm install popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 8f9fae4..c21fc75 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -117,7 +117,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version pushd "$final_path" ynh_use_nodejs - ynh_exec_warn_less ynh_npm install + ynh_exec_warn_less $ynh_npm install popd #=================================================