appsettings.json Overview
The file appsettings.json is the main source of configuration for the DpeNanoServices application. It contains various (optional) sections. Some are inherited from the used ASP.Net framework, some are custom options for DpeNanoServices.
Example appsettings.json file
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
},
"EventLog": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
},
"AllowedHosts": "*",
"_Kestrel": {
"Endpoints": {
"Https": {
"Url": "https://localhost:5256",
"SslProtocols": [ "Tls12", "Tls13" ],
"Certificate": {
"Path": "C:\\\\Orga\\\\LicsAndKeys\\wildcard_davidsystems-test_com.pfx",
"Password": ""
}
}
}
},
"DpeLogging": {
"UseFileLogger": true,
"_BaseFolder": ".\\",
"_ProtocolParameterXml": "C:\\temp",
"_ConnectionString": "Data Source=NOTEBOOK-WS2\\sql2022;Initial Catalog=DpeCoreDb;Integrated Security=True;Min Pool Size=100;Max Pool Size=1000;"
},
"DpeParFile": {
"_DigaSystemRegistryXmlFilePath": null
}
}
Section Logging
Configures ASP.Net logging.
More info under https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0
Section Kestrel
Configures Kestrel, the web server framework used by ASP.Net.
See also
More info under https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-7.0
Section DpeLogging
Configures DPE Logging
Section DpeParFile
Configures DPE Parameter File Usage
See also How and Where DigaSystem parameter files are searched