Issue #3: add gateway configuration and validation

This commit is contained in:
Joseph Doherty
2026-04-26 16:11:30 -04:00
parent 16c18954b6
commit 91ea71b0b7
26 changed files with 657 additions and 1 deletions
@@ -0,0 +1,12 @@
namespace MxGateway.Server.Configuration;
public sealed class AuthenticationOptions
{
public AuthenticationMode Mode { get; init; } = AuthenticationMode.ApiKey;
public string SqlitePath { get; init; } = @"C:\ProgramData\MxGateway\gateway-auth.db";
public string PepperSecretName { get; init; } = "MxGateway:ApiKeyPepper";
public bool RunMigrationsOnStartup { get; init; } = true;
}