mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
24 lines
386 B
TypeScript
24 lines
386 B
TypeScript
import {
|
|
type DomainSchema,
|
|
type Schema,
|
|
type Template,
|
|
generateHash,
|
|
generateRandomDomain,
|
|
} from "../utils";
|
|
|
|
export function generate(schema: Schema): Template {
|
|
const mainServiceHash = generateHash(schema.projectName);
|
|
|
|
const domains: DomainSchema[] = [
|
|
{
|
|
host: generateRandomDomain(schema),
|
|
port: 80,
|
|
serviceName: "appsmith",
|
|
},
|
|
];
|
|
|
|
return {
|
|
domains,
|
|
};
|
|
}
|