forked from gongxuegit/tiku-backend.net
feat: enforce tenant isolation and shared question bank
This commit is contained in:
12
Tiku.Api/Options/TenantResolutionOptions.cs
Normal file
12
Tiku.Api/Options/TenantResolutionOptions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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/auth", "/api/tenant", "/api/catalog", "/api/assets", "/api/scoreline", "/api/referral", "/api/commerce/payments/notify"];
|
||||
public string[] TrustedProxyAddresses { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user