refactor(multi-server): adapt paths on server and in dokploy ui

This commit is contained in:
Mauricio Siu
2024-09-16 23:49:24 -06:00
parent c84d39a20f
commit 9b312cd9d7
43 changed files with 255 additions and 159 deletions
+1 -2
View File
@@ -30,8 +30,7 @@ export const generateRandomDomain = ({
const hash = randomBytes(3).toString("hex");
const slugIp = serverIp.replaceAll(".", "-");
return "";
// return `${projectName}-${hash}${process.env.NODE_ENV === "production" || IS_CLOUD ? `-${slugIp}` : ""}.traefik.me`;
return `${projectName}-${hash}${slugIp === "" ? "" : `-${slugIp}`}.traefik.me`;
};
export const generateHash = (projectName: string, quantity = 3): string => {