Skip to content

Adds additional configuration sources, that are arguably more useful for opensource and cloud development

Notifications You must be signed in to change notification settings

joelharkes/AspNetCore.Better.ConfigurationSources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better AspNetCore Configuration sources

This project contains 2 additional configuration sources for AspNetCore:

  • Environment variables
  • Json Environment variable (like nodjs config).

The goal of these projects was to ease the installation

Environment Variables

This project Equals the already existent Microsoft.Extensions.Configuration.EnvironmentVariables but removes all the bloat and instead of double _ being a separator, a single underscore is a separator. Just like you would find docker and kubernetes creating their environment variables.

In short: Great for cloud docker development

example

var builder = new ConfigurationBuilder()
    .AddOsIndependentEnvironmentVariables();

Node Config Environment Variable

This packages mimics the config npm package as it allows you to inject json configuration as an environment variable.

This is great for when you have projects half based on nodejs and half on dotnet core. You can now inject configuration in the same way

var builder = new ConfigurationBuilder()
    .AddNodeConfig("NODE_CONFIG"); //parameter is optional, defines env variable used to deserialize.

About

Adds additional configuration sources, that are arguably more useful for opensource and cloud development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages