Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/14e3e1fa353c97fdbf94d5983452d3577240d354
You should set ROOT_URL correctly, otherwise the web may not work correctly.
5 changed files with
29 additions and
1 deletions
@ -157,6 +157,7 @@ class GeneralSettings extends Component {
/ >
< LoggingSettings
advancedSettings = { advancedSettings }
settings = { settings }
onInputChange = { onInputChange }
/ >
@ -30,12 +30,14 @@ const logLevelOptions = [
function LoggingSettings ( props ) {
const {
advancedSettings ,
settings ,
onInputChange
} = props ;
const {
logLevel
logLevel ,
logSizeLimit
} = settings ;
return (
@ -52,11 +54,30 @@ function LoggingSettings(props) {
{ ... logLevel }
/ >
< / F o r m G r o u p >
< FormGroup
advancedSettings = { advancedSettings }
isAdvanced = { true }
>
< FormLabel > { translate ( 'LogSizeLimit' ) } < / F o r m L a b e l >
< FormInputGroup
type = { inputTypes . NUMBER }
name = "logSizeLimit"
min = { 1 }
max = { 10 }
unit = "MB"
helpText = { translate ( 'LogSizeLimitHelpText' ) }
onChange = { onInputChange }
{ ... logSizeLimit }
/ >
< / F o r m G r o u p >
< / F i e l d S e t >
) ;
}
LoggingSettings . propTypes = {
advancedSettings : PropTypes . bool . isRequired ,
settings : PropTypes . object . isRequired ,
onInputChange : PropTypes . func . isRequired
} ;
@ -841,6 +841,8 @@
"LogLevel" : "Log Level" ,
"LogLevelTraceHelpTextWarning" : "Trace logging should only be enabled temporarily" ,
"LogOnly" : "Log Only" ,
"LogSizeLimit" : "Log Size Limit" ,
"LogSizeLimitHelpText" : "Maximum log file size in MB before archiving. Default is 1MB." ,
"Logging" : "Logging" ,
"Logs" : "Logs" ,
"LongDateFormat" : "Long Date Format" ,
@ -61,6 +61,8 @@ namespace Radarr.Api.V3.Config
. Must ( ( resource , path ) = > IsValidSslCertificate ( resource ) ) . WithMessage ( "Invalid SSL certificate file or password" )
. When ( c = > c . EnableSsl ) ;
SharedValidator . RuleFor ( c = > c . LogSizeLimit ) . InclusiveBetween ( 1 , 10 ) ;
SharedValidator . RuleFor ( c = > c . Branch ) . NotEmpty ( ) . WithMessage ( "Branch name is required, 'master' is the default" ) ;
SharedValidator . RuleFor ( c = > c . UpdateScriptPath ) . IsValidPath ( ) . When ( c = > c . UpdateMechanism = = UpdateMechanism . Script ) ;
@ -21,6 +21,7 @@ namespace Radarr.Api.V3.Config
public string Password { get ; set ; }
public string PasswordConfirmation { get ; set ; }
public string LogLevel { get ; set ; }
public int LogSizeLimit { get ; set ; }
public string ConsoleLogLevel { get ; set ; }
public string Branch { get ; set ; }
public string ApiKey { get ; set ; }
@ -65,6 +66,7 @@ namespace Radarr.Api.V3.Config
// Username
// Password
LogLevel = model . LogLevel ,
LogSizeLimit = model . LogSizeLimit ,
ConsoleLogLevel = model . ConsoleLogLevel ,
Branch = model . Branch ,
ApiKey = model . ApiKey ,