mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-23 00:44:24 +01:00
Adding update related options and using them in HostedService
This commit is contained in:
@@ -176,6 +176,8 @@ namespace BTCPayServer.Configuration
|
||||
SocksEndpoint = endpoint;
|
||||
}
|
||||
|
||||
UpdateCheck = conf.GetOrDefault<bool>("updatecheck", false);
|
||||
UpdateUrl = conf.GetOrDefault<Uri>("updateurl", new Uri("https://api.github.com/repos/btcpayserver/btcpayserver/releases/latest"));
|
||||
|
||||
var sshSettings = ParseSSHConfiguration(conf);
|
||||
if ((!string.IsNullOrEmpty(sshSettings.Password) || !string.IsNullOrEmpty(sshSettings.KeyFile)) && !string.IsNullOrEmpty(sshSettings.Server))
|
||||
@@ -301,5 +303,7 @@ namespace BTCPayServer.Configuration
|
||||
set;
|
||||
}
|
||||
public string TorrcFile { get; set; }
|
||||
public bool UpdateCheck { get; set; }
|
||||
public Uri UpdateUrl { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user