Generate the cert properly

This commit is contained in:
Owen 2026-08-17 13:45:51 -04:00
parent 555b36e13e
commit 87a3e5ceea
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
6 changed files with 4 additions and 15 deletions

View file

@ -24,8 +24,6 @@ import logger from "@server/logger";
import { defaultRoleAllowedActions } from "@server/routers/role/createRole";
import { getNextAvailableAliasAddress } from "../ip";
import { createCertificate } from "@server/routers/certificates/createCertificate";
import { isLicensedOrSubscribed } from "#dynamic/lib/isLicencedOrSubscribed";
import { tierMatrix } from "../billing/tierMatrix";
import { build } from "@server/build";
import { LimitId } from "../billing";
import { usageService } from "../billing/usageService";

View file

@ -51,9 +51,6 @@ import { tierMatrix } from "../billing/tierMatrix";
import { isValidCIDR, isValidIP, isValidUrlGlobPattern } from "../validators";
import { Config, isTargetsOnlyResource, TargetData } from "./types";
import { getOrCreateLabelIds, syncResourceLabels } from "./labels";
import HttpCode from "@server/types/HttpCode";
import createHttpError from "http-errors";
import next from "next";
import { LimitId } from "../billing";
import { usageService } from "../billing/usageService";
import { syncInferenceAiConfig } from "./aiProviders";

View file

@ -632,9 +632,7 @@ async function createHttpResource(
);
}
if (build !== "oss") {
await createCertificate(domainId, fullDomain, db);
}
await createCertificate(domainId, fullDomain, db);
return response<CreateResourceResponse>(res, {
data: resource,

View file

@ -678,9 +678,7 @@ async function updateHttpResource(
// Update the subdomain in the update data
updateData.subdomain = finalSubdomain;
if (build != "oss") {
await createCertificate(domainId, fullDomain, db);
}
await createCertificate(domainId, fullDomain, db);
}
let headers = undefined;

View file

@ -739,8 +739,7 @@ export async function createSiteResource(
ssl &&
(mode === "http" || mode == "inference") &&
domainId &&
fullDomain &&
build != "oss"
fullDomain
) {
await createCertificate(domainId, fullDomain, db);
}

View file

@ -718,8 +718,7 @@ export async function updateSiteResource(
ssl &&
(mode === "http" || mode == "inference") &&
domainId &&
fullDomain &&
build != "oss"
fullDomain
) {
await createCertificate(domainId, fullDomain, db);
}