1
0
This commit is contained in:
nicolas.dorier
2020-08-06 00:26:36 +09:00
parent f6c59e0389
commit f1f2016cdb
9 changed files with 27 additions and 17 deletions

View File

@@ -59,12 +59,16 @@ namespace DockerGenerator
}
fragments.Add("btcpayserver");
bool hasAltcoins = false;
foreach (var crypto in cryptoDefinitions)
{
if (!composition.SelectedCryptos.Contains(crypto.Crypto))
continue;
fragments.Add(crypto.CryptoFragment);
if (crypto.CryptoFragment != "bitcoin")
hasAltcoins = true;
if (composition.SelectedLN == "clightning" && crypto.CLightningFragment != null)
{
fragments.Add(crypto.CLightningFragment);
@@ -79,6 +83,11 @@ namespace DockerGenerator
}
}
if (hasAltcoins)
Environment.SetEnvironmentVariable("BTCPAY_BUILD_CONFIGURATION", "-altcoins");
else
Environment.SetEnvironmentVariable("BTCPAY_BUILD_CONFIGURATION", "");
foreach (var fragment in composition.AdditionalFragments)
{
fragments.Add(fragment);

View File

@@ -6,12 +6,12 @@
"environmentVariables": {
"BTCPAY_HOST_SSHKEYFILE": "test.rsa",
"BTCPAYGEN_LIGHTNING": "clightning",
"BTCPAYGEN_ADDITIONAL_FRAGMENTS": "opt-save-storage",
"BTCPAYGEN_CRYPTO4": "ftc",
"BTCPAYGEN_CRYPTO3": "btg",
"BTCPAYGEN_CRYPTO2": "ltc",
"BTCPAYGEN_CRYPTO1": "btc",
"BTCPAYGEN_REVERSEPROXY": "nginx",
"BTCPAYGEN_ADDITIONAL_FRAGMENTS": "opt-save-storage;opt-txindex"
"BTCPAYGEN_REVERSEPROXY": "nginx"
}
}
}