Merge branch 'canary' of https://github.com/Dokploy/dokploy into feat/refactor-format-and-lint

This commit is contained in:
Krzysztof Durek
2024-07-15 01:13:09 +02:00
7 changed files with 88 additions and 3 deletions

24
templates/umami/index.ts Normal file
View File

@@ -0,0 +1,24 @@
import {
type Schema,
type Template,
generateBase64,
generateHash,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const mainServiceHash = generateHash(schema.projectName);
const randomDomain = generateRandomDomain(schema);
const randomSecret = generateBase64();
const envs = [
`UMAMI_HOST=${randomDomain}`,
"UMAMI_PORT=3000",
`APP_SECRET=${randomSecret}`,
`HASH=${mainServiceHash}`,
];
return {
envs,
};
}