diff --git a/conf/nginx.conf b/conf/nginx.conf index 158d806..e31e4a8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,12 +6,13 @@ location __PATH__ { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass http://127.0.0.1:9117; + proxy_pass http://127.0.0.1:__PORT__; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $http_host; proxy_redirect off; + # Allow the Jackett API location __PATH__/api { auth_request off; @@ -20,4 +21,4 @@ location __PATH__ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; -} \ No newline at end of file +} diff --git a/scripts/upgrade b/scripts/upgrade index 67b6587..ba4c98a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,12 +24,6 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) # CHECK VERSION #================================================= -### This helper will compare the version of the currently installed app and the version of the upstream package. -### $upgrade_type can have 2 different values -### - UPGRADE_APP if the upstream app version has changed -### - UPGRADE_PACKAGE if only the YunoHost package has changed -### ynh_check_app_version_changed will stop the upgrade if the app is up to date. -### UPGRADE_APP should be used to upgrade the core app only if there's an upgrade to do. upgrade_type=$(ynh_check_app_version_changed) #=================================================