1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/radarr_ynh.git synced 2024-09-03 20:16:13 +02:00

Merge pull request #31 from YunoHost-Apps/testing

Add host header and config panel to disable auth system
This commit is contained in:
tituspijean 2023-11-01 19:24:12 +01:00 committed by GitHub
commit 107cfaaf8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 35 additions and 3 deletions

View file

@ -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 Movie collection manager for Usenet and BitTorrent users
**Shipped version:** 5.0.3.8127~ynh1 **Shipped version:** 5.0.3.8127~ynh2
## Screenshots ## Screenshots

View file

@ -18,7 +18,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Movie collection manager for Usenet and BitTorrent users 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 ## Captures décran

View file

@ -5,6 +5,7 @@ location __PATH__ {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_no_cache $cookie_session; proxy_no_cache $cookie_session;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;

12
config_panel.toml Normal file
View file

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

View file

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

View file

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

View file

@ -5,7 +5,7 @@ name = "Radarr"
description.en = "Movie collection manager for Usenet and BitTorrent users" description.en = "Movie collection manager for Usenet and BitTorrent users"
description.fr = "Gestionnaire de filmothèque pour utilisateurs de Usenet et BitTorrent" 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"] maintainers = ["tituspijean"]

12
scripts/config Normal file
View file

@ -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="<AuthenticationMethod>[[:alnum:]]*</AuthenticationMethod>" --replace_string="<AuthenticationMethod>External</AuthenticationMethod>" --target_file="$data_dir/config.xml"
}
ynh_app_config_run $1