mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Added ssl support (config file only)
This commit is contained in:
parent
48dbc127a7
commit
2b85b7f466
6 changed files with 166 additions and 51 deletions
|
@ -20,6 +20,8 @@ namespace NzbDrone.Core.Configuration
|
|||
void SaveConfigDictionary(Dictionary<string, object> configValues);
|
||||
|
||||
int Port { get; }
|
||||
int SslPort { get; }
|
||||
bool EnableSsl { get; }
|
||||
bool LaunchBrowser { get; }
|
||||
bool AuthenticationEnabled { get; }
|
||||
string Username { get; }
|
||||
|
@ -27,6 +29,7 @@ namespace NzbDrone.Core.Configuration
|
|||
string LogLevel { get; }
|
||||
string Branch { get; }
|
||||
bool Torrent { get; }
|
||||
string SslCertHash { get; }
|
||||
}
|
||||
|
||||
public class ConfigFileProvider : IConfigFileProvider
|
||||
|
@ -90,6 +93,16 @@ namespace NzbDrone.Core.Configuration
|
|||
get { return GetValueInt("Port", 8989); }
|
||||
}
|
||||
|
||||
public int SslPort
|
||||
{
|
||||
get { return GetValueInt("SslPort", 9898); }
|
||||
}
|
||||
|
||||
public bool EnableSsl
|
||||
{
|
||||
get { return GetValueBoolean("EnableSsl", false); }
|
||||
}
|
||||
|
||||
public bool LaunchBrowser
|
||||
{
|
||||
get { return GetValueBoolean("LaunchBrowser", true); }
|
||||
|
@ -125,6 +138,11 @@ namespace NzbDrone.Core.Configuration
|
|||
get { return GetValue("LogLevel", "Info"); }
|
||||
}
|
||||
|
||||
public string SslCertHash
|
||||
{
|
||||
get { return GetValue("SslCertHash", ""); }
|
||||
}
|
||||
|
||||
public int GetValueInt(string key, int defaultValue)
|
||||
{
|
||||
return Convert.ToInt32(GetValue(key, defaultValue));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue