Foxchat.NET/Foxchat.Core/CoreConfig.cs
2024-05-14 03:51:31 +02:00

24 lines
669 B
C#

using Serilog.Events;
namespace Foxchat.Core;
public class CoreConfig
{
public string Host { get; set; } = "localhost";
public int Port { get; set; } = 3000;
public bool Secure { get; set; } = false;
public string Domain { get; set; } = null!;
public string Address => $"{(Secure ? "https" : "http")}://{Host}:{Port}";
public LogEventLevel LogEventLevel { get; set; } = LogEventLevel.Debug;
public DatabaseConfig Database { get; set; } = new();
public class DatabaseConfig
{
public string Url { get; set; } = string.Empty;
public int? Timeout { get; set; }
public int? MaxPoolSize { get; set; }
}
}