mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-18 17:04:19 +01:00
be nicer when parsing BTCPAYGEN_ADDITIONAL_FRAGMENTS
This commit is contained in:
@@ -41,7 +41,11 @@ namespace DockerGenerator
|
||||
}
|
||||
composition.SelectedProxy = (Environment.GetEnvironmentVariable("BTCPAYGEN_REVERSEPROXY") ?? "").ToLowerInvariant();
|
||||
composition.SelectedLN = (Environment.GetEnvironmentVariable("BTCPAYGEN_LIGHTNING") ?? "").ToLowerInvariant();
|
||||
composition.AdditionalFragments = (Environment.GetEnvironmentVariable("BTCPAYGEN_ADDITIONAL_FRAGMENTS") ?? "").ToLowerInvariant().Split(';').Where(t => !string.IsNullOrWhiteSpace(t)).ToArray();
|
||||
composition.AdditionalFragments = (Environment.GetEnvironmentVariable("BTCPAYGEN_ADDITIONAL_FRAGMENTS") ?? "").ToLowerInvariant()
|
||||
.Split(new char[] { ';' , ',' })
|
||||
.Where(t => !string.IsNullOrWhiteSpace(t))
|
||||
.Select(t => t.EndsWith(".yml") ? t.Substring(0, t.Length - ".yml".Length) : t)
|
||||
.ToArray();
|
||||
return composition;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user