Add config from environment variables
This commit is contained in:
parent
6356ddc7c6
commit
93ba2be2c1
@ -16,6 +16,7 @@ namespace Worker
|
|||||||
{
|
{
|
||||||
var config = new ConfigurationBuilder()
|
var config = new ConfigurationBuilder()
|
||||||
.AddJsonFile("appsettings.json")
|
.AddJsonFile("appsettings.json")
|
||||||
|
.AddEnvironmentVariables()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
var loggerFactory = new LoggerFactory()
|
var loggerFactory = new LoggerFactory()
|
||||||
|
Loading…
Reference in New Issue
Block a user