1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00
* Fix ynh_npm
This commit is contained in:
Éric Gaspar 2021-11-18 11:48:15 +01:00 committed by GitHub
parent 788cfd2b79
commit e08a751c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 9 deletions

View file

@ -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;

View file

@ -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",

View file

@ -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
#=================================================

View file

@ -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
#=================================================