mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-20 19:18:45 +00:00
refactor: add localhos traefik domains
This commit is contained in:
@@ -28,7 +28,7 @@ export const generateRandomDomain = ({
|
||||
}: Schema): string => {
|
||||
const hash = randomBytes(3).toString("hex");
|
||||
const slugIp = serverIp.replaceAll(".", "-");
|
||||
return `${projectName}-${hash}-${slugIp}.traefik.me`;
|
||||
return `${projectName}-${hash}${process.env.NODE_ENV === "production" ? `-${slugIp}` : ""}.traefik.me`;
|
||||
};
|
||||
|
||||
export const generateHash = (projectName: string, quantity = 3): string => {
|
||||
|
||||
Reference in New Issue
Block a user