Adding another location for appsettings file to make it easier with Docker, maybe. #8

Merged
jtom38 merged 1 commits from features/alternate-appsettings-path into main 2023-06-17 12:04:34 -07:00

View File

@ -103,6 +103,7 @@ static IConfiguration GetConfiguration()
{ {
return new ConfigurationBuilder() return new ConfigurationBuilder()
.AddJsonFile("appsettings.json", true) .AddJsonFile("appsettings.json", true)
.AddJsonFile("config/appsettings.json", true)
.AddEnvironmentVariables() .AddEnvironmentVariables()
.Build(); .Build();
} }