namespace DexDemoBackend; public class AppConfig { public string DbHost { get; set; } = "postgres"; public string DbPort { get; set; } = "5440"; public string DbName { get; set; } = "dexdemo"; public string DbUser { get; set; } = "dexdemo"; public string DbPassword { get; set; } = "dexdemo"; public string Issuer { get; set; } = "https://dex.127.0.0.1.sslip.io/"; public bool InsecureDevMode { get; set; } public string? InsecureDevEmail { get; set; } public string[] AllowedOrigins { get; set; } = ["http://localhost:3000", "https://localhost:3000"]; // JWT configuration public string NameClaimType { get; set; } = "name"; public string RoleClaimType { get; set; } = "role"; public string EmailClaimType { get; set; } = "email"; public string AuthRequestEmailHeader { get; set; } = "X-Auth-Request-Email"; public TimeSpan ClockSkew { get; set; } = TimeSpan.FromMinutes(5); public string ConnectionString => $"Host={DbHost};Port={DbPort};Database={DbName};Username={DbUser};Password={DbPassword}"; }