mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 12:13:13 +00:00
39 lines
980 B
C#
39 lines
980 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; }
|
||
|
|
}
|
||
|
|
|
||
|
|
public sealed class VendorDocumentsOptions
|
||
|
|
{
|
||
|
|
public const string SectionName = "VendorDocuments";
|
||
|
|
|
||
|
|
public long MaxSizeBytes { get; set; } = 10 * 1024 * 1024;
|
||
|
|
}
|