Skip to main content

Configuration

QuantumCoreX uses Microsoft.Extensions.Configuration which can have multiple data sources (i.e. json files, command line args, environment variables). Feel free to read into their docs do get a better understanding about overriding and naming.

The following configuration providers are supported by default

  • hardcoded configs in the app (see default value)
  • appsettings.json: {"Section":{"SomeKey": "SOME_VALUE"}}, {"Section:SomeKey": "SomeValue"}
  • Environment: SECTION__SOME_KEY=SOME_VALUE
  • Command Line: --SECTION:SOME_KEY SOME_VALUE, --SECTION:SOME_KEY=SOME_VALUE

The order is important. The providers are applied on after another. The last is the most important overriding all previous providers. It is not possible to remove configuration from previous providers as of now.

The following examples are equivalent

--database:provider sqlite

Settings

warning

🚧 This area is work in progress and might not be up to date

Depending on your application you have different settings:

tip

By default QC comes with a preexisting appsettings.json file next to the executable. You can create a appsettings.Production.json to override values without touching the base config file

Additional config files

The following files are location in data/ next to the executable