# Configuration
ELO Sync uses settings from different configuration sources, listed here in ascending priority.
Configuration sources with higher priorities overwrite settings from sources with lower priorities:
Default environment variables based on the prefixes
DOTNET_
andASPNETCORE_
Configuration file appsettings.json at the executable file level. See Configuration for more details.
appsettings.{Environment}.json
: Configuration file on the executable file level. The environment name is based on previous configuration sources or the default valueProduction
.Environment variables without prefix
Command line arguments
Configuration files provided with the command line argument
--config-file
Administration/ELO Sync/config/appsettings.public
: Document in the ELO repositoryAdministration/ELO Sync/config/<InstanceName>/appsettings.public
: Document in the ELO repository. Only included if<InstanceName>
was provided by a local configuration source.Environment variables with the prefix
ELOSYNC_
. This mechanism is useful for applications with generic images in which special configuration settings are also required.set ServiceUser__UserName="ServiceUser" set ELOSYNC_ServiceUser__UserName="EloServiceUser" # ELO Sync will now use "EloServiceUser" for its service user, not "ServiceUser" dotnet run Elo.Sync.Main