winmr-api/Configuration/AppSettings.cs

26 lines
878 B
C#
Raw Normal View History

2025-07-04 00:04:51 +03:00
/* This software is licensed by the MIT License, see LICENSE file */
/* Copyright <20> 2024-2025 Gregory Lirent */
2025-07-02 16:06:50 +03:00
2025-06-30 18:15:07 +03:00
namespace WebmrAPI.Configuration
{
public class AppSettings
{
2025-07-02 16:06:50 +03:00
public MonitoringSettings Monitoring { get; set; } = new MonitoringSettings();
public WebServerSettings WebServer { get; set; } = new WebServerSettings();
2025-06-30 18:15:07 +03:00
}
2025-07-02 16:06:50 +03:00
public class MonitoringSettings
2025-06-30 18:15:07 +03:00
{
2025-07-03 20:01:19 +03:00
public int ProcessScanInterval { get; set; } = 5;
2025-07-02 16:06:50 +03:00
public int MemoryRegionScanTimeout { get; set; } = 30;
2025-07-03 20:01:19 +03:00
public int ThreadScanTimeout { get; set; } = 30;
public int ModuleScanTimeout { get; set; } = 60;
2025-07-03 15:22:40 +03:00
public bool AllowProcessReadAccess { get; set; } = true;
2025-06-30 18:15:07 +03:00
}
public class WebServerSettings
{
public string Url { get; set; } = "http://0.0.0.0:8080"; // Default listening URL
}
2025-07-02 16:06:50 +03:00
}