mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
style: run code formatting on two files
This commit is contained in:
@@ -1,30 +1,27 @@
|
|||||||
import {
|
import {
|
||||||
type DomainSchema,
|
type DomainSchema,
|
||||||
type Schema,
|
type Schema,
|
||||||
type Template,
|
type Template,
|
||||||
generateBase64,
|
generateBase64,
|
||||||
generateRandomDomain,
|
generateRandomDomain,
|
||||||
} from "../utils";
|
} from "../utils";
|
||||||
|
|
||||||
export function generate(schema: Schema): Template {
|
export function generate(schema: Schema): Template {
|
||||||
const mainDomain = generateRandomDomain(schema);
|
const mainDomain = generateRandomDomain(schema);
|
||||||
const authSecret = generateBase64(32);
|
const authSecret = generateBase64(32);
|
||||||
|
|
||||||
const domains: DomainSchema[] = [
|
const domains: DomainSchema[] = [
|
||||||
{
|
{
|
||||||
host: mainDomain,
|
host: mainDomain,
|
||||||
port: 8080,
|
port: 8080,
|
||||||
serviceName: "aptabase",
|
serviceName: "aptabase",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const envs = [
|
const envs = [`APTABASE_HOST=${mainDomain}`, `AUTH_SECRET=${authSecret}`];
|
||||||
`APTABASE_HOST=${mainDomain}`,
|
|
||||||
`AUTH_SECRET=${authSecret}`
|
|
||||||
];
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
envs,
|
envs,
|
||||||
domains,
|
domains,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -427,7 +427,8 @@ export const templates: TemplateData[] = [
|
|||||||
id: "aptabase",
|
id: "aptabase",
|
||||||
name: "Aptabase",
|
name: "Aptabase",
|
||||||
version: "v1.0.0",
|
version: "v1.0.0",
|
||||||
description: "Aptabase is a self-hosted web analytics platform that lets you track website traffic and user behavior.",
|
description:
|
||||||
|
"Aptabase is a self-hosted web analytics platform that lets you track website traffic and user behavior.",
|
||||||
logo: "aptabase.svg",
|
logo: "aptabase.svg",
|
||||||
links: {
|
links: {
|
||||||
github: "https://github.com/aptabase/aptabase",
|
github: "https://github.com/aptabase/aptabase",
|
||||||
@@ -437,5 +438,4 @@ export const templates: TemplateData[] = [
|
|||||||
tags: ["analytics", "self-hosted"],
|
tags: ["analytics", "self-hosted"],
|
||||||
load: () => import("./aptabase/index").then((m) => m.generate),
|
load: () => import("./aptabase/index").then((m) => m.generate),
|
||||||
},
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user