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 (
input: TraefikOptions,
serverId?: string,
) => {
const resourceType = await getDockerResourceType("dokploy-traefik", serverId);
export const writeTraefikSetup = async (input: TraefikOptions) => {
const resourceType = await getDockerResourceType(
"dokploy-traefik",
input.serverId,
);
if (resourceType === "service") {
await initializeTraefikService({
env: input.env,
additionalPorts: input.additionalPorts,
serverId: serverId,
serverId: input.serverId,
});
} else {
await initializeStandaloneTraefik({
env: input.env,
additionalPorts: input.additionalPorts,
serverId: serverId,
serverId: input.serverId,
});
}
};