remove is base domain resource and flag

This commit is contained in:
miloschwartz
2025-07-15 15:07:34 -07:00
parent ff809416f5
commit f1291d4d7d
15 changed files with 8 additions and 32 deletions

View File

@@ -19,7 +19,6 @@ const updateOrgParamsSchema = z
const updateOrgBodySchema = z
.object({
name: z.string().min(1).max(255).optional()
// domain: z.string().min(1).max(255).optional(),
})
.strict()
.refine((data) => Object.keys(data).length > 0, {

View File

@@ -307,8 +307,7 @@ async function createHttpResource(
subdomain,
http: true,
protocol: "tcp",
ssl: true,
isBaseDomain: false
ssl: true
})
.returning();

View File

@@ -61,7 +61,7 @@ export async function traefikConfigProvider(
http: resources.http,
proxyPort: resources.proxyPort,
protocol: resources.protocol,
isBaseDomain: resources.isBaseDomain,
subdomain: resources.subdomain,
domainId: resources.domainId,
// Site fields
site: {
@@ -210,7 +210,7 @@ export async function traefikConfigProvider(
wildCard = `*.${domainParts.slice(1).join(".")}`;
}
if (resource.isBaseDomain) {
if (!resource.subdomain) {
wildCard = resource.fullDomain;
}