Ability to update settings. Take effect on next reboot.

This commit is contained in:
Joseph Milazzo 2021-02-04 16:49:48 -06:00
parent e60f795410
commit 1050fa4e54
21 changed files with 953 additions and 146 deletions

View file

@ -7,7 +7,7 @@ namespace API.Entities
public class ServerSetting : IHasConcurrencyToken
{
[Key]
public string Key { get; set; }
public ServerSettingKey Key { get; set; }
public string Value { get; set; }
[ConcurrencyCheck]

View file

@ -0,0 +1,10 @@
namespace API.Entities
{
public enum ServerSettingKey
{
TaskScan = 0,
CacheDirectory = 1,
TaskBackup = 2,
LoggingLevel = 3
}
}