Creating server daemon. Added system info (not host info) and data usage endpoints

This commit is contained in:
2024-12-12 23:04:39 +01:00
parent 4168b93d61
commit 3c88b60e8d
17 changed files with 713 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
namespace MoonlightServers.Daemon.Configuration;
public class AppConfiguration
{
public DockerData Docker { get; set; } = new();
public StorageData Storage { get; set; } = new();
public SecurityData Security { get; set; } = new();
public class DockerData
{
public string Uri { get; set; } = "unix:///var/run/docker.sock";
}
public class SecurityData
{
public string Token { get; set; }
}
public class StorageData
{
public string Volumes { get; set; }
public string VirtualDisks { get; set; }
public string Backups { get; set; }
public string Install { get; set; }
}
}