fix configurator password loader (#1298)

This commit is contained in:
Andrew Camilleri 2020-01-22 07:16:32 +01:00 committed by Nicolas Dorier
parent dcb3601791
commit 7076692069
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ namespace BTCPayServer.Configuration
{
throw new System.IO.FileNotFoundException("Cookie file path not found", ex);
}
if (serviceType == ExternalServiceTypes.RTL)
if (serviceType == ExternalServiceTypes.RTL || serviceType == ExternalServiceTypes.Configurator)
{
connectionString.AccessKey = cookieFileContent;
}

View file

@ -47,7 +47,7 @@ namespace BTCPayServer.Configuration
public void LoadNonCryptoServices(IConfiguration configuration)
{
Load(configuration, null, "configurator", ExternalServiceTypes.Configurator, "Invalid setting {0}, " + Environment.NewLine +
$"configurator: 'passwordfile=/etc/configurator/password'" + Environment.NewLine +
$"configurator: 'cookiefilepathfile=/etc/configurator/cookie'" + Environment.NewLine +
"Error: {1}",
"Configurator");
}