2026-07-24 12:07:48 -03:00
|
|
|
namespace SeaHaven.Services.Configuration;
|
|
|
|
|
|
|
|
|
|
public sealed class FrontendOptions
|
|
|
|
|
{
|
|
|
|
|
public string FrontendBaseUrl { get; set; } = string.Empty;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public sealed class JwtOptions
|
|
|
|
|
{
|
|
|
|
|
public const string SectionName = "JWT";
|
|
|
|
|
|
|
|
|
|
public string Secret { get; set; } = string.Empty;
|
|
|
|
|
public string? ValidIssuer { get; set; }
|
|
|
|
|
public string? ValidAudience { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public sealed class ApprovalsOptions
|
|
|
|
|
{
|
|
|
|
|
public const string SectionName = "Approvals";
|
|
|
|
|
|
|
|
|
|
public decimal? UpliftTier1MaxUsd { get; set; }
|
|
|
|
|
public string[] Tier1Roles { get; set; } = Array.Empty<string>();
|
|
|
|
|
public string[] Tier2Roles { get; set; } = Array.Empty<string>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public sealed class VendorPortalOptions
|
|
|
|
|
{
|
|
|
|
|
public const string SectionName = "VendorPortal";
|
|
|
|
|
|
|
|
|
|
public int? TokenLifetimeDays { get; set; }
|
|
|
|
|
}
|
2026-07-24 16:36:48 -03:00
|
|
|
|
|
|
|
|
public sealed class VendorDocumentsOptions
|
|
|
|
|
{
|
|
|
|
|
public const string SectionName = "VendorDocuments";
|
|
|
|
|
|
|
|
|
|
public long MaxSizeBytes { get; set; } = 10 * 1024 * 1024;
|
|
|
|
|
}
|