|
|
|
@ -45,11 +45,13 @@ namespace NzbDrone.Core.Configuration
|
|
|
|
|
string SslCertPassword { get; }
|
|
|
|
|
string UrlBase { get; }
|
|
|
|
|
string UiFolder { get; }
|
|
|
|
|
string InstanceName { get; }
|
|
|
|
|
bool UpdateAutomatically { get; }
|
|
|
|
|
UpdateMechanism UpdateMechanism { get; }
|
|
|
|
|
string UpdateScriptPath { get; }
|
|
|
|
|
string SyslogServer { get; }
|
|
|
|
|
int SyslogPort { get; }
|
|
|
|
|
string SyslogLevel { get; }
|
|
|
|
|
string PostgresHost { get; }
|
|
|
|
|
int PostgresPort { get; }
|
|
|
|
|
string PostgresUser { get; }
|
|
|
|
@ -223,6 +225,7 @@ namespace NzbDrone.Core.Configuration
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UiFolder => BuildInfo.IsDebug ? Path.Combine("..", "UI") : "UI";
|
|
|
|
|
public string InstanceName => GetValue("InstanceName", BuildInfo.AppName);
|
|
|
|
|
|
|
|
|
|
public bool UpdateAutomatically => GetValueBoolean("UpdateAutomatically", false, false);
|
|
|
|
|
|
|
|
|
@ -231,8 +234,11 @@ namespace NzbDrone.Core.Configuration
|
|
|
|
|
public string UpdateScriptPath => GetValue("UpdateScriptPath", "", false);
|
|
|
|
|
|
|
|
|
|
public string SyslogServer => GetValue("SyslogServer", "", persist: false);
|
|
|
|
|
|
|
|
|
|
public int SyslogPort => GetValueInt("SyslogPort", 514, persist: false);
|
|
|
|
|
|
|
|
|
|
public string SyslogLevel => GetValue("SyslogLevel", LogLevel).ToLowerInvariant();
|
|
|
|
|
|
|
|
|
|
public int GetValueInt(string key, int defaultValue, bool persist = true)
|
|
|
|
|
{
|
|
|
|
|
return Convert.ToInt32(GetValue(key, defaultValue, persist));
|
|
|
|
|