mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
chore: format whole repository with new configs
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
generateBase64,
|
||||
} from "../utils";
|
||||
|
||||
// https://cal.com/
|
||||
export function generate(schema: Schema): Template {
|
||||
const mainServiceHash = generateHash(schema.projectName);
|
||||
const randomDomain = generateRandomDomain(schema);
|
||||
const calcomEncryptionKey = generateBase64(32);
|
||||
const nextAuthSecret = generateBase64(32);
|
||||
const calcomEncryptionKey = generateBase64(32);
|
||||
const nextAuthSecret = generateBase64(32);
|
||||
|
||||
const envs = [
|
||||
`CALCOM_HOST=${randomDomain}`,
|
||||
"CALCOM_PORT=3000",
|
||||
`HASH=${mainServiceHash}`,
|
||||
`NEXTAUTH_SECRET=${nextAuthSecret}`,
|
||||
`CALENDSO_ENCRYPTION_KEY=${calcomEncryptionKey}`,
|
||||
`NEXTAUTH_SECRET=${nextAuthSecret}`,
|
||||
`CALENDSO_ENCRYPTION_KEY=${calcomEncryptionKey}`,
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generatePassword,
|
||||
generateHash,
|
||||
generatePassword,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
generateBase64,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
generateBase64,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generatePassword,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
@@ -19,7 +19,7 @@ export function generate(schema: Schema): Template {
|
||||
"# check config.toml in Advanced / Volumes for more options",
|
||||
];
|
||||
|
||||
const mounts: Template["mounts"] = [
|
||||
const mounts: Template["mounts"] = [
|
||||
{
|
||||
mountPath: "./config.toml",
|
||||
content: `[app]
|
||||
@@ -47,6 +47,6 @@ params = ""
|
||||
|
||||
return {
|
||||
envs,
|
||||
mounts,
|
||||
mounts,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
generateBase64,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
// EXAMPLE
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
generateBase64,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
const mainServiceHash = generateHash(schema.projectName);
|
||||
const randomDomain = generateRandomDomain(schema);
|
||||
const secretBase = generateBase64(64);
|
||||
@@ -25,4 +23,4 @@ export function generate(schema: Schema): Template {
|
||||
return {
|
||||
envs,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
@@ -12,8 +12,8 @@ export function generate(schema: Schema): Template {
|
||||
`OPEN_WEBUI_HOST=${randomDomain}`,
|
||||
"OPEN_WEBUI_PORT=8080",
|
||||
`HASH=${mainServiceHash}`,
|
||||
'OLLAMA_DOCKER_TAG=0.1.47',
|
||||
'WEBUI_DOCKER_TAG=0.3.7'
|
||||
"OLLAMA_DOCKER_TAG=0.1.47",
|
||||
"WEBUI_DOCKER_TAG=0.3.7",
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generatePassword,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
generateBase64,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -319,45 +319,48 @@ export const templates: TemplateData[] = [
|
||||
load: () => import("./glitchtip/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: 'open-webui',
|
||||
name: 'Open WebUI',
|
||||
version: 'v0.3.7',
|
||||
description: 'Open WebUI is a free and open source chatgpt alternative. Open WebUI is an extensible, feature-rich, and user-friendly self-hosted WebUI designed to operate entirely offline. It supports various LLM runners, including Ollama and OpenAI-compatible APIs. The template include ollama and webui services.',
|
||||
logo: 'open-webui.png',
|
||||
id: "open-webui",
|
||||
name: "Open WebUI",
|
||||
version: "v0.3.7",
|
||||
description:
|
||||
"Open WebUI is a free and open source chatgpt alternative. Open WebUI is an extensible, feature-rich, and user-friendly self-hosted WebUI designed to operate entirely offline. It supports various LLM runners, including Ollama and OpenAI-compatible APIs. The template include ollama and webui services.",
|
||||
logo: "open-webui.png",
|
||||
links: {
|
||||
github: 'https://github.com/open-webui/open-webui',
|
||||
website: 'https://openwebui.com/',
|
||||
docs: 'https://docs.openwebui.com/',
|
||||
github: "https://github.com/open-webui/open-webui",
|
||||
website: "https://openwebui.com/",
|
||||
docs: "https://docs.openwebui.com/",
|
||||
},
|
||||
tags: ['chat'],
|
||||
load: () => import('./open-webui/index').then((m) => m.generate),
|
||||
tags: ["chat"],
|
||||
load: () => import("./open-webui/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: 'listmonk',
|
||||
name: 'Listmonk',
|
||||
version: 'v3.0.0',
|
||||
description: 'High performance, self-hosted, newsletter and mailing list manager with a modern dashboard.',
|
||||
logo: 'listmonk.png',
|
||||
id: "listmonk",
|
||||
name: "Listmonk",
|
||||
version: "v3.0.0",
|
||||
description:
|
||||
"High performance, self-hosted, newsletter and mailing list manager with a modern dashboard.",
|
||||
logo: "listmonk.png",
|
||||
links: {
|
||||
github: 'https://github.com/knadh/listmonk',
|
||||
website: 'https://listmonk.app/',
|
||||
docs: 'https://listmonk.app/docs/',
|
||||
github: "https://github.com/knadh/listmonk",
|
||||
website: "https://listmonk.app/",
|
||||
docs: "https://listmonk.app/docs/",
|
||||
},
|
||||
tags: ['email', 'newsletter', 'mailing-list'],
|
||||
load: () => import('./listmonk/index').then((m) => m.generate),
|
||||
},
|
||||
tags: ["email", "newsletter", "mailing-list"],
|
||||
load: () => import("./listmonk/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: 'doublezero',
|
||||
name: 'Double Zero',
|
||||
version: 'v0.2.1',
|
||||
description: '00 is a self hostable SES dashboard for sending and monitoring emails with AWS',
|
||||
logo: 'doublezero.svg',
|
||||
id: "doublezero",
|
||||
name: "Double Zero",
|
||||
version: "v0.2.1",
|
||||
description:
|
||||
"00 is a self hostable SES dashboard for sending and monitoring emails with AWS",
|
||||
logo: "doublezero.svg",
|
||||
links: {
|
||||
github: 'https://github.com/technomancy-dev/00',
|
||||
website: 'https://www.double-zero.cloud/',
|
||||
docs: 'https://github.com/technomancy-dev/00',
|
||||
github: "https://github.com/technomancy-dev/00",
|
||||
website: "https://www.double-zero.cloud/",
|
||||
docs: "https://github.com/technomancy-dev/00",
|
||||
},
|
||||
tags: ['email'],
|
||||
load: () => import('./doublezero/index').then((m) => m.generate),
|
||||
}
|
||||
tags: ["email"],
|
||||
load: () => import("./doublezero/index").then((m) => m.generate),
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { randomBytes } from "node:crypto";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { templates } from "../templates";
|
||||
import type { TemplatesKeys } from "../types/templates-data.type";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
|
||||
export interface Schema {
|
||||
serverIp: string;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
|
||||
Reference in New Issue
Block a user