Files
tiku-backend.net/Tiku.Api/Options/TenantResolutionOptions.cs
xiong c497a3ca8d
Some checks failed
ci / release-gate (push) Has been cancelled
清理代码
2026-08-03 12:31:39 +08:00

17 lines
629 B
C#

namespace Tiku.Api.Options;
public sealed class TenantResolutionOptions
{
public const string SectionName = "Tenancy:Resolution";
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; } = [];
}