From 040bdd8b939784c11dc62543d50d69e0d2d01c1c Mon Sep 17 00:00:00 2001 From: Quentin Michaud <76600167+mh4ckt3mh4ckt1c4s@users.noreply.github.com> Date: Sat, 21 Oct 2023 14:09:44 +0200 Subject: [PATCH 1/5] Fix login localhost bug --- conf/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index b374ab5..21d0e65 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,6 +5,7 @@ location __PATH__ { 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 Host __DOMAIN__; proxy_http_version 1.1; proxy_no_cache $cookie_session; proxy_set_header Upgrade $http_upgrade; From 4f510464d12ac7bbe4c96928a0f2edd421b2f538 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 29 Oct 2023 15:58:25 +0100 Subject: [PATCH 2/5] Update conf/nginx.conf --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 21d0e65..8e0f1d4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,7 +5,7 @@ location __PATH__ { 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 Host __DOMAIN__; + proxy_set_header Host $host; proxy_http_version 1.1; proxy_no_cache $cookie_session; proxy_set_header Upgrade $http_upgrade; From 3890fc141692e5913fd538dccfaeebda669bd3db Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 29 Oct 2023 16:06:52 +0100 Subject: [PATCH 3/5] Bump package version --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index d92f94e..704e051 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Radarr" description.en = "Movie collection manager for Usenet and BitTorrent users" description.fr = "Gestionnaire de filmothèque pour utilisateurs de Usenet et BitTorrent" -version = "5.0.3.8127~ynh1" +version = "5.0.3.8127~ynh2" maintainers = ["tituspijean"] From 19edf1a7a18f464118063ac37c54080785ab9470 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 1 Nov 2023 15:11:41 +0100 Subject: [PATCH 4/5] Add config panel to disable Radarr auth system --- config_panel.toml | 12 ++++++++++++ doc/POST_UPGRADE.d/5.0.3.8127~ynh2.md | 4 ++++ doc/POST_UPGRADE.d/5.0.3.8127~ynh2_fr.md | 3 +++ scripts/config | 12 ++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 config_panel.toml create mode 100644 doc/POST_UPGRADE.d/5.0.3.8127~ynh2.md create mode 100644 doc/POST_UPGRADE.d/5.0.3.8127~ynh2_fr.md create mode 100644 scripts/config diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..3d270b0 --- /dev/null +++ b/config_panel.toml @@ -0,0 +1,12 @@ +version = "1.0" + +[authentication] + +services = ["__APP__"] + + [authentication.authentication] + + [authentication.authentication.external_authentication] + ask.en = "Set Radarr's authentication method to External and rely on YunoHost's permission system." + ask.fr = "Paramétrer la méthode d'authentication de Radarr sur External et utiliser le système de permissions de YunoHost." + type = "button" diff --git a/doc/POST_UPGRADE.d/5.0.3.8127~ynh2.md b/doc/POST_UPGRADE.d/5.0.3.8127~ynh2.md new file mode 100644 index 0000000..0f5501d --- /dev/null +++ b/doc/POST_UPGRADE.d/5.0.3.8127~ynh2.md @@ -0,0 +1,4 @@ +As of recent versions, Radarr is forcing its users to use an authentication method. + +Since YunoHost offers its own permissions system you can make sure Radarr's own system is disabled by using the ["Authentication" + config panel](#/apps/__APP__/authentication) of the app in YunoHost's webadmin. diff --git a/doc/POST_UPGRADE.d/5.0.3.8127~ynh2_fr.md b/doc/POST_UPGRADE.d/5.0.3.8127~ynh2_fr.md new file mode 100644 index 0000000..1f2167b --- /dev/null +++ b/doc/POST_UPGRADE.d/5.0.3.8127~ynh2_fr.md @@ -0,0 +1,3 @@ +Depuis de récentes versions, Radarr force ses utilisateurs à utiliser une méthode d'authentification. + +Puisque YunoHost offre son propre système d'authentification vous pouvez désactiver le propre système de Radarr en utilisant [le panneau de configuration "Authentication"](#/apps/__APP__/authentication) de la webadmin de YunoHost. diff --git a/scripts/config b/scripts/config new file mode 100644 index 0000000..02a7d01 --- /dev/null +++ b/scripts/config @@ -0,0 +1,12 @@ +#!/bin/bash + +source /usr/share/yunohost/helpers +ynh_abort_if_errors + +data_dir=$(ynh_app_setting_get --app=$app --key=data_dir) + +run__external_authentication() { + ynh_replace_string --match_string="[[:alnum:]]*" --replace_string="External" --target_file="$data_dir/config.xml" +} + +ynh_app_config_run $1 From 08793aa0ebf87b829ca549166644e95e930787f5 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 1 Nov 2023 14:12:13 +0000 Subject: [PATCH 5/5] Auto-update README --- README.md | 3 ++- README_fr.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90cf0b0..f373681 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Movie collection manager for Usenet and BitTorrent users -**Shipped version:** 5.0.3.8127~ynh1 +**Shipped version:** 5.0.3.8127~ynh2 ## Screenshots @@ -29,6 +29,7 @@ Movie collection manager for Usenet and BitTorrent users * Official app website: * Official admin documentation: * Upstream app code repository: +* YunoHost Store: * Report a bug: ## Developer info diff --git a/README_fr.md b/README_fr.md index 3ddfc60..2b8f252 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Movie collection manager for Usenet and BitTorrent users -**Version incluse :** 5.0.3.8127~ynh1 +**Version incluse :** 5.0.3.8127~ynh2 ## Captures d’écran @@ -29,6 +29,7 @@ Movie collection manager for Usenet and BitTorrent users * Site officiel de l’app : * Documentation officielle de l’admin : * Dépôt de code officiel de l’app : +* YunoHost Store: * Signaler un bug : ## Informations pour les développeurs