LANCommander/LANCommander.Server.Settings/Models/ServerSettings.cs
Pat Hartl add770b227 Refactor Settings
Settings for the server are now combined with the settings from the SDK. This introduces a large breaking change and a migration should be created. This refactor utilizes .NET Configuration and the Options pattern. This will allow for the overriding of any setting using envionment variables. It also means that Settings.yml can be used to override any .NET configuration. A SettingsProvider implementation was created, and any updating of settings was changed from SettingsService.SaveSettings() to SettingsProvider.Update(s => { ... })
2025-11-16 12:31:25 -06:00

23 lines
No EOL
1.1 KiB
C#

namespace LANCommander.Server.Settings.Models;
public class ServerSettings
{
public ArchiveSettings Archives { get; set; } = new();
public AuthenticationSettings Authentication { get; set; } = new();
public BackupSettings Backups { get; set; } = new();
public BeaconSettings Beacon { get; set; } = new();
public DatabaseSettings Database { get; set; } = new();
public HttpSettings Http { get; set; } = new();
public IGDBSettings IGDB { get; set; } = new();
public IPXRelaySettings IPXRelay { get; set; } = new();
public LauncherSettings Launcher { get; set; } = new();
public LibrarySettings Library { get; set; } = new();
public LogSettings Logs { get; set; } = new();
public MediaSettings Media { get; set; } = new();
public RoleSettings Roles { get; set; } = new();
public ScriptSettings Scripts { get; set; } = new();
public GameServerSettings GameServers { get; set; } = new();
public SteamCmdSettings SteamCMD { get; set; } = new();
public UpdateSettings Update { get; set; } = new();
public UserSaveSettings UserSaves { get; set; } = new();
}