From 4d5c7fd6ba39f9348bb9497c4991646d6e2b93b1 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 1 Mar 2025 01:43:32 -0600 Subject: [PATCH] Delete templates/plausible/index.ts --- templates/plausible/index.ts | 71 ------------------------------------ 1 file changed, 71 deletions(-) delete mode 100644 templates/plausible/index.ts diff --git a/templates/plausible/index.ts b/templates/plausible/index.ts deleted file mode 100644 index 2bd1212b..00000000 --- a/templates/plausible/index.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { - type DomainSchema, - type Schema, - type Template, - generateBase64, - generateRandomDomain, -} from "../utils"; - -export function generate(schema: Schema): Template { - const mainDomain = generateRandomDomain(schema); - const secretBase = generateBase64(64); - const toptKeyBase = generateBase64(32); - - const domains: DomainSchema[] = [ - { - host: mainDomain, - port: 8000, - serviceName: "plausible", - }, - ]; - - const envs = [ - `BASE_URL=http://${mainDomain}`, - `SECRET_KEY_BASE=${secretBase}`, - `TOTP_VAULT_KEY=${toptKeyBase}`, - ]; - - const mounts: Template["mounts"] = [ - { - filePath: "/clickhouse/clickhouse-config.xml", - content: ` - - - warning - true - - - - - - - - - - - - - - `, - }, - { - filePath: "/clickhouse/clickhouse-user-config.xml", - content: ` - - - - 0 - 0 - - - - `, - }, - ]; - - return { - envs, - mounts, - domains, - }; -}