rdt-client/server/RdtClient.Data/Models/Internal/AppSettings.cs
Roger Far cccf30c87d Improved logging by switching to Serilog.
Refactored out hardcoded logpath and DB connection string and made them configurable through appsettings.json.
Add persistent store path in docker-compose.
2021-01-09 11:05:33 -07:00

37 lines
925 B
C#

using System;
namespace RdtClient.Data.Models.Internal
{
public class AppSettings
{
public AppSettingsLogging Logging { get; set; }
public AppSettingsDatabase Database { get; set; }
public String AllowedHosts { get; set; }
public String HostUrl { get; set; }
}
public class AppSettingsLogging
{
public AppSettingsLoggingLogLevel LogLevel { get; set; }
public AppSettingsLoggingFile File { get; set; }
}
public class AppSettingsLoggingLogLevel
{
public String Default { get; set; }
}
public class AppSettingsLoggingFile
{
public String Path { get; set; }
public String Append { get; set; }
public Int64 FileSizeLimitBytes { get; set; }
public Int32 MaxRollingFiles { get; set; }
}
public class AppSettingsDatabase
{
public String Path { get; set; }
}
}