mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-20 12:54:21 +01:00
add in fragments and additional fragments related to traefik
This commit is contained in:
@@ -19,7 +19,7 @@ namespace DockerGenerator
|
||||
var productionLocation = Path.GetFullPath(Path.Combine(root, "Production"));
|
||||
var testLocation = Path.GetFullPath(Path.Combine(root, "Production-NoReverseProxy"));
|
||||
|
||||
foreach(var proxy in new[] { "nginx", "no-reverseproxy", "traefik", "emit-traefik-labels" })
|
||||
foreach(var proxy in new[] { "nginx", "no-reverseproxy", "traefik" })
|
||||
{
|
||||
foreach(var lightning in new[] { "clightning", "" })
|
||||
{
|
||||
@@ -40,6 +40,10 @@ namespace DockerGenerator
|
||||
composition.SelectedCryptos.Add(ltc);
|
||||
composition.SelectedLN = lightning;
|
||||
composition.SelectedProxy = proxy;
|
||||
if (composition.SelectedProxy == "traefik")
|
||||
{
|
||||
composition.AdditionalFragments = new []{"traefik-labels"};
|
||||
}
|
||||
new Program().Run(composition, name, new string[] {"nginx", "traefik"}.Contains(proxy)? productionLocation : testLocation);
|
||||
}
|
||||
}
|
||||
@@ -74,12 +78,9 @@ namespace DockerGenerator
|
||||
fragments.Add("nginx");
|
||||
break;
|
||||
case "traefik":
|
||||
|
||||
fragments.Add("traefik");
|
||||
break;
|
||||
case "emit-traefik-labels":
|
||||
case "no-reverseproxy":
|
||||
|
||||
fragments.Add("btcpayserver-noreverseproxy");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user