namespace MiGu.Server.Configs;

public record LogPolicy(string Level, int RollDays, int MaxSizeMB);
public record SecurityPolicy(int JwtExpireMin, bool EnableSwagger, List<string> CorsWhitelist);

public record SystemConfig(int DispatchLoopHz, LogPolicy Log, SecurityPolicy Security)
{
    public static SystemConfig Default() => new(
        DispatchLoopHz: 50,
        Log: new LogPolicy("info", 7, 256),
        Security: new SecurityPolicy(1440, false, new List<string> { "http://localhost:5173" }));
}
