Files
tiku-backend.net/Tiku.Api/Options/TenantResolutionOptions.cs

19 lines
682 B
C#

namespace Tiku.Api.Options;
public sealed class TenantResolutionOptions
{
public const string SectionName = "Tenancy:Resolution";
public string CellId { get; set; } = "cell-01";
public string[] PlatformHosts { get; set; } = ["localhost", "127.0.0.1"];
public string[] ExemptPathPrefixes { get; set; } = ["/health", "/openapi", "/scalar"];
public string[] TenantCodePathPrefixes { get; set; } =
[
"/api/tenant/auth", "/api/tenant", "/api/public/catalog", "/api/student/assets", "/api/public/scoreline",
"/api/student/referral", "/api/student/commerce/payments/notify"
];
public string[] TrustedProxyAddresses { get; set; } = [];
}