From 90bd276ad4f79f3754981aa4c540f12b864da5e6 Mon Sep 17 00:00:00 2001
From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com>
Date: Sat, 25 Oct 2025 07:11:54 +0000
Subject: [PATCH] [autofix.ci] apply automated fixes
---
apps/dokploy/__test__/compose/domain/labels.test.ts | 4 ++--
apps/dokploy/__test__/traefik/traefik.test.ts | 2 +-
.../dashboard/impersonation/impersonation-bar.tsx | 2 +-
apps/dokploy/components/layouts/user-nav.tsx | 2 +-
packages/server/src/db/schema/domain.ts | 6 +++---
packages/server/src/utils/docker/domain.ts | 8 ++++++--
packages/server/src/utils/traefik/domain.ts | 11 +++++++++--
7 files changed, 23 insertions(+), 12 deletions(-)
diff --git a/apps/dokploy/__test__/compose/domain/labels.test.ts b/apps/dokploy/__test__/compose/domain/labels.test.ts
index 556ab35c7..61afec36c 100644
--- a/apps/dokploy/__test__/compose/domain/labels.test.ts
+++ b/apps/dokploy/__test__/compose/domain/labels.test.ts
@@ -7,7 +7,7 @@ describe("createDomainLabels", () => {
const baseDomain: Domain = {
host: "example.com",
port: 8080,
- customEntrypoint: null,
+ customEntrypoint: null,
https: false,
uniqueConfigKey: 1,
customCertResolver: null,
@@ -272,7 +272,7 @@ describe("createDomainLabels", () => {
"traefik.http.routers.test-app-1-custom.entrypoints=custom",
"traefik.http.services.test-app-1-custom.loadbalancer.server.port=8080",
"traefik.http.routers.test-app-1-custom.service=test-app-1-custom",
- "traefik.http.routers.test-app-1-custom.tls.certresolver=letsencrypt",
+ "traefik.http.routers.test-app-1-custom.tls.certresolver=letsencrypt",
]);
});
});
diff --git a/apps/dokploy/__test__/traefik/traefik.test.ts b/apps/dokploy/__test__/traefik/traefik.test.ts
index 9fd4956e7..437a09d30 100644
--- a/apps/dokploy/__test__/traefik/traefik.test.ts
+++ b/apps/dokploy/__test__/traefik/traefik.test.ts
@@ -123,7 +123,7 @@ const baseDomain: Domain = {
https: false,
path: null,
port: null,
- customEntrypoint: null,
+ customEntrypoint: null,
serviceName: "",
composeId: "",
customCertResolver: null,
diff --git a/apps/dokploy/components/dashboard/impersonation/impersonation-bar.tsx b/apps/dokploy/components/dashboard/impersonation/impersonation-bar.tsx
index a5aae598c..b96b7c866 100644
--- a/apps/dokploy/components/dashboard/impersonation/impersonation-bar.tsx
+++ b/apps/dokploy/components/dashboard/impersonation/impersonation-bar.tsx
@@ -281,7 +281,7 @@ export const ImpersonationBar = () => {
diff --git a/apps/dokploy/components/layouts/user-nav.tsx b/apps/dokploy/components/layouts/user-nav.tsx
index ca5854196..337e8f483 100644
--- a/apps/dokploy/components/layouts/user-nav.tsx
+++ b/apps/dokploy/components/layouts/user-nav.tsx
@@ -44,7 +44,7 @@ export const UserNav = () => {
>
diff --git a/packages/server/src/db/schema/domain.ts b/packages/server/src/db/schema/domain.ts
index 8ea204d15..769aec127 100644
--- a/packages/server/src/db/schema/domain.ts
+++ b/packages/server/src/db/schema/domain.ts
@@ -31,7 +31,7 @@ export const domains = pgTable("domain", {
host: text("host").notNull(),
https: boolean("https").notNull().default(false),
port: integer("port").default(3000),
- customEntrypoint: text("customEntrypoint"),
+ customEntrypoint: text("customEntrypoint"),
path: text("path").default("/"),
serviceName: text("serviceName"),
domainType: domainType("domainType").default("application"),
@@ -77,7 +77,7 @@ export const apiCreateDomain = createSchema.pick({
host: true,
path: true,
port: true,
- customEntrypoint: true,
+ customEntrypoint: true,
https: true,
applicationId: true,
certificateType: true,
@@ -113,7 +113,7 @@ export const apiUpdateDomain = createSchema
host: true,
path: true,
port: true,
- customEntrypoint: true,
+ customEntrypoint: true,
https: true,
certificateType: true,
customCertResolver: true,
diff --git a/packages/server/src/utils/docker/domain.ts b/packages/server/src/utils/docker/domain.ts
index f79fda86c..f7101a641 100644
--- a/packages/server/src/utils/docker/domain.ts
+++ b/packages/server/src/utils/docker/domain.ts
@@ -220,7 +220,11 @@ export const addDomainToCompose = async (
throw new Error(`The service ${serviceName} not found in the compose`);
}
- const httpLabels = createDomainLabels(appName, domain, domain.customEntrypoint || "web");
+ const httpLabels = createDomainLabels(
+ appName,
+ domain,
+ domain.customEntrypoint || "web",
+ );
if (domain.customEntrypoint == null && https) {
const httpsLabels = createDomainLabels(appName, domain, "websecure");
httpLabels.push(...httpsLabels);
@@ -304,7 +308,7 @@ export const createDomainLabels = (
const {
host,
port,
- customEntrypoint,
+ customEntrypoint,
https,
uniqueConfigKey,
certificateType,
diff --git a/packages/server/src/utils/traefik/domain.ts b/packages/server/src/utils/traefik/domain.ts
index 1c48f8725..7f8edd324 100644
--- a/packages/server/src/utils/traefik/domain.ts
+++ b/packages/server/src/utils/traefik/domain.ts
@@ -112,8 +112,15 @@ export const createRouterConfig = async (
const { appName, redirects, security } = app;
const { certificateType } = domain;
- const { host, path, https, uniqueConfigKey, internalPath, stripPath, customEntrypoint } =
- domain;
+ const {
+ host,
+ path,
+ https,
+ uniqueConfigKey,
+ internalPath,
+ stripPath,
+ customEntrypoint,
+ } = domain;
const routerConfig: HttpRouter = {
rule: `Host(\`${host}\`)${path !== null && path !== "/" ? ` && PathPrefix(\`${path}\`)` : ""}`,
service: `${appName}-service-${uniqueConfigKey}`,