mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-05 19:52:15 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -248,7 +248,11 @@ describe("createDomainLabels", () => {
|
|||||||
...baseDomain,
|
...baseDomain,
|
||||||
middlewares: ["auth@file"],
|
middlewares: ["auth@file"],
|
||||||
};
|
};
|
||||||
const labels = await createDomainLabels(appName, customMiddlewareDomain, "web");
|
const labels = await createDomainLabels(
|
||||||
|
appName,
|
||||||
|
customMiddlewareDomain,
|
||||||
|
"web",
|
||||||
|
);
|
||||||
|
|
||||||
expect(labels).toContain(
|
expect(labels).toContain(
|
||||||
"traefik.http.routers.test-app-1-web.middlewares=auth@file",
|
"traefik.http.routers.test-app-1-web.middlewares=auth@file",
|
||||||
@@ -260,7 +264,11 @@ describe("createDomainLabels", () => {
|
|||||||
...baseDomain,
|
...baseDomain,
|
||||||
middlewares: ["auth@file", "rate-limit@file"],
|
middlewares: ["auth@file", "rate-limit@file"],
|
||||||
};
|
};
|
||||||
const labels = await createDomainLabels(appName, customMiddlewareDomain, "web");
|
const labels = await createDomainLabels(
|
||||||
|
appName,
|
||||||
|
customMiddlewareDomain,
|
||||||
|
"web",
|
||||||
|
);
|
||||||
|
|
||||||
expect(labels).toContain(
|
expect(labels).toContain(
|
||||||
"traefik.http.routers.test-app-1-web.middlewares=auth@file,rate-limit@file",
|
"traefik.http.routers.test-app-1-web.middlewares=auth@file,rate-limit@file",
|
||||||
|
|||||||
@@ -290,9 +290,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
|
|||||||
composeId: id,
|
composeId: id,
|
||||||
}),
|
}),
|
||||||
...data,
|
...data,
|
||||||
customEntrypoint: data.useCustomEntrypoint
|
customEntrypoint: data.useCustomEntrypoint ? data.customEntrypoint : null,
|
||||||
? data.customEntrypoint
|
|
||||||
: null,
|
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
toast.success(dictionary.success);
|
toast.success(dictionary.success);
|
||||||
|
|||||||
Reference in New Issue
Block a user