Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/f5a68782ce3aef14a0efb93816435cdefa1bfca8
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
9 additions and
15 deletions
@ -38,7 +38,7 @@ namespace NzbDrone.Api
container . Resolve < DatabaseTarget > ( ) . Register ( ) ;
container . Resolve < IMessageAggregator > ( ) . PublishEvent ( new ApplicationStartedEvent ( ) ) ;
if ( container . Resolve < IConfigFileProvider > ( ) . AuthenticationType = = AuthenticationType . Basic )
{
pipelines . EnableBasicAuthentication ( new BasicAuthenticationConfiguration (
@ -127,25 +127,19 @@ namespace NzbDrone.Common.Test
[Test]
public void GetAuthenticationType_No_Existing_Value ( )
{
var result = Subject . AuthenticationType ;
result . Should ( ) . Be ( AuthenticationType . Anonymous ) ;
}
[Test]
public void GetAuthenticationType_ Windows ( )
public void GetAuthenticationType_ Basic ( )
{
Subject . SetValue ( "AuthenticationType" , 1 ) ;
Subject . SetValue ( "AuthenticationType" , AuthenticationType . Basic ) ;
var result = Subject . AuthenticationType ;
result . Should ( ) . Be ( AuthenticationType . Windows ) ;
result . Should ( ) . Be ( AuthenticationType . Basic ) ;
}
[Test]
@ -17,6 +17,7 @@ namespace NzbDrone.Common
int GetValueInt ( string key , int defaultValue ) ;
bool GetValueBoolean ( string key , bool defaultValue ) ;
string GetValue ( string key , object defaultValue ) ;
T GetValueEnum < T > ( string key , T defaultValue ) ;
void SetValue ( string key , object value ) ;
}
@ -88,7 +89,7 @@ namespace NzbDrone.Common
return Convert . ToBoolean ( GetValue ( key , defaultValue ) ) ;
}
p rivate T GetValueEnum < T > ( string key , T defaultValue )
p ublic T GetValueEnum < T > ( string key , T defaultValue )
{
return ( T ) Enum . Parse ( typeof ( T ) , GetValue ( key , defaultValue ) , true ) ;
}
@ -100,7 +101,6 @@ namespace NzbDrone.Common
var parentContainer = config ;
var valueHolder = parentContainer . Descendants ( key ) . ToList ( ) ;
if ( valueHolder . Count ( ) = = 1 )
@ -131,7 +131,7 @@ namespace NzbDrone.Common
xDoc . Save ( _configFile ) ;
}
p rivate void SetValue ( string key , Enum value )
p ublic void SetValue ( string key , Enum value )
{
SetValue ( key , value . ToString ( ) . ToLower ( ) ) ;
}