mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
* feat(template): added conduit, a matrix homeserver * Update apps/dokploy/templates/conduit/index.ts * Update apps/dokploy/templates/conduit/index.ts --------- Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
29 lines
469 B
TypeScript
29 lines
469 B
TypeScript
// EXAMPLE
|
|
import {
|
|
type DomainSchema,
|
|
type Schema,
|
|
type Template,
|
|
generateRandomDomain,
|
|
} from "../utils";
|
|
|
|
export function generate(schema: Schema): Template {
|
|
const matrixSubdomain = generateRandomDomain(schema);
|
|
|
|
const domains: DomainSchema[] = [
|
|
{
|
|
host: matrixSubdomain,
|
|
port: 6167,
|
|
serviceName: "homeserver",
|
|
},
|
|
];
|
|
|
|
const envs = [
|
|
`MATRIX_SUBDOMAIN=${matrixSubdomain} # Replace by your server name`,
|
|
];
|
|
|
|
return {
|
|
envs,
|
|
domains,
|
|
};
|
|
}
|