[#3] Elwig: Add feature to sync deliveries

This commit is contained in:
2024-04-15 15:22:04 +02:00
parent f53371ab19
commit e7bfc69842
9 changed files with 431 additions and 11 deletions

View File

@ -41,6 +41,9 @@ namespace Elwig.Helpers {
public string? Branch = null;
public string? UpdateUrl = null;
public bool UpdateAuto = false;
public string? SyncUrl = null;
public string SyncUsername = "";
public string SyncPassword = "";
public string? SmtpHost = null;
public int? SmtpPort = null;
@ -71,6 +74,9 @@ namespace Elwig.Helpers {
Debug = TrueValues.Contains(config["general:debug"]?.ToLower());
UpdateUrl = config["update:url"];
UpdateAuto = TrueValues.Contains(config["update:auto"]?.ToLower());
SyncUrl = config["sync:url"];
SyncUsername = config["sync:username"] ?? "";
SyncPassword = config["sync:password"] ?? "";
SmtpHost = config["smtp:host"];
SmtpPort = config["smtp:port"]?.All(char.IsAsciiDigit) == true && config["smtp:port"]?.Length > 0 ? int.Parse(config["smtp:port"]!) : null;