Hacker News new | ask | show | jobs
by cyral 1183 days ago
I think it's just:

builder.Configuration.AddEnvironmentVariables();

Then you can use an env variable like "Foo__Bar=X" to override Foo.Bar from your appsettings json.

1 comments

If using the default builder, environment variables are included automatically as a configuration provider.