mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-26 00:05:34 +02:00
Merge pull request #2352 from Aeriit/fix-remote-traefik-env
fix(traefik): on setup support serverId as parameter and input
This commit is contained in:
@@ -391,22 +391,22 @@ export const readPorts = async (
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const writeTraefikSetup = async (
|
export const writeTraefikSetup = async (input: TraefikOptions) => {
|
||||||
input: TraefikOptions,
|
const resourceType = await getDockerResourceType(
|
||||||
serverId?: string,
|
"dokploy-traefik",
|
||||||
) => {
|
input.serverId,
|
||||||
const resourceType = await getDockerResourceType("dokploy-traefik", serverId);
|
);
|
||||||
if (resourceType === "service") {
|
if (resourceType === "service") {
|
||||||
await initializeTraefikService({
|
await initializeTraefikService({
|
||||||
env: input.env,
|
env: input.env,
|
||||||
additionalPorts: input.additionalPorts,
|
additionalPorts: input.additionalPorts,
|
||||||
serverId: serverId,
|
serverId: input.serverId,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await initializeStandaloneTraefik({
|
await initializeStandaloneTraefik({
|
||||||
env: input.env,
|
env: input.env,
|
||||||
additionalPorts: input.additionalPorts,
|
additionalPorts: input.additionalPorts,
|
||||||
serverId: serverId,
|
serverId: input.serverId,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user