mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-07 16:19:07 +00:00
31 lines
811 B
C#
31 lines
811 B
C#
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; }
|
|
}
|