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:
Mauricio Siu
2025-08-10 15:04:26 -06:00
committed by GitHub

View File

@@ -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,
}); });
} }
}; };