From e7abcae7d9eed8135a8b7ea434e3ae824b8bef5e Mon Sep 17 00:00:00 2001 From: Yalh Date: Tue, 29 Jan 2019 00:49:59 +0100 Subject: [PATCH] update PORT --- conf/nginx.conf | 2 +- manifest.json | 2 +- scripts/install | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 78e365b..6fd7dbf 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,7 +8,7 @@ location __PATH__/ { if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass http://127.0.0.1:8000/; + proxy_pass http://127.0.0.1:__PORT__/; proxy_set_header Host $host; proxy_buffering off; diff --git a/manifest.json b/manifest.json index becb630..e352f99 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name": "YunoHost Distbin app", + "name": "Distbin", "id": "distbin", "packaging_format": 1, "description": { diff --git a/scripts/install b/scripts/install index 755dd67..8a1417b 100644 --- a/scripts/install +++ b/scripts/install @@ -80,7 +80,7 @@ ynh_app_setting_set $app language $language ### - Remove the section "CLOSE A PORT" in the remove script # Find a free port -port=$(ynh_find_port 8095) +port=$(ynh_find_port 8000) # Open this port #yunohost firewall allow --no-upnp TCP $port 2>&1 ynh_app_setting_set $app port $port