mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
chore: lint fixes
This commit is contained in:
@@ -512,7 +512,7 @@ export const templates: TemplateData[] = [
|
|||||||
tags: ["self-hosted", "email", "webmail"],
|
tags: ["self-hosted", "email", "webmail"],
|
||||||
load: () => import("./roundcube/index").then((m) => m.generate),
|
load: () => import("./roundcube/index").then((m) => m.generate),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "tolgee",
|
id: "tolgee",
|
||||||
name: "Tolgee",
|
name: "Tolgee",
|
||||||
version: "v3.80.4",
|
version: "v3.80.4",
|
||||||
@@ -526,7 +526,7 @@ export const templates: TemplateData[] = [
|
|||||||
},
|
},
|
||||||
tags: ["self-hosted", "i18n", "localization", "translations"],
|
tags: ["self-hosted", "i18n", "localization", "translations"],
|
||||||
load: () => import("./tolgee/index").then((m) => m.generate),
|
load: () => import("./tolgee/index").then((m) => m.generate),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "portainer",
|
id: "portainer",
|
||||||
name: "Portainer",
|
name: "Portainer",
|
||||||
|
|||||||
@@ -1,41 +1,41 @@
|
|||||||
import {
|
import {
|
||||||
type Template,
|
type DomainSchema,
|
||||||
type Schema,
|
type Schema,
|
||||||
type DomainSchema,
|
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 jwtSecret = generateBase64(32);
|
const jwtSecret = generateBase64(32);
|
||||||
|
|
||||||
const domains: DomainSchema[] = [
|
const domains: DomainSchema[] = [
|
||||||
{
|
{
|
||||||
host: mainDomain,
|
host: mainDomain,
|
||||||
port: 8080,
|
port: 8080,
|
||||||
serviceName: "app",
|
serviceName: "app",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const envs = [
|
const envs = [
|
||||||
`TOLGEE_HOST=${mainDomain}`,
|
`TOLGEE_HOST=${mainDomain}`,
|
||||||
"TOLGEE_AUTHENTICATION_ENABLED=true",
|
"TOLGEE_AUTHENTICATION_ENABLED=true",
|
||||||
"TOLGEE_AUTHENTICATION_INITIAL_PASSWORD=admin",
|
"TOLGEE_AUTHENTICATION_INITIAL_PASSWORD=admin",
|
||||||
"TOLGEE_AUTHENTICATION_INITIAL_USERNAME=admin",
|
"TOLGEE_AUTHENTICATION_INITIAL_USERNAME=admin",
|
||||||
`TOLGEE_AUTHENTICATION_JWT_SECRET=${jwtSecret}`,
|
`TOLGEE_AUTHENTICATION_JWT_SECRET=${jwtSecret}`,
|
||||||
"TOLGEE_MACHINE_TRANSLATION_GOOGLE_API_KEY=my_google_api_key",
|
"TOLGEE_MACHINE_TRANSLATION_GOOGLE_API_KEY=my_google_api_key",
|
||||||
"TOLGEE_SMTP_AUTH=true",
|
"TOLGEE_SMTP_AUTH=true",
|
||||||
"TOLGEE_SMTP_FROM=Tolgee <no-reply@mydomain.com>",
|
"TOLGEE_SMTP_FROM=Tolgee <no-reply@mydomain.com>",
|
||||||
"TOLGEE_SMTPHOST=email-smtp.regional-region.amazonaws.com",
|
"TOLGEE_SMTPHOST=email-smtp.regional-region.amazonaws.com",
|
||||||
"TOLGEE_SMTP_PASSWORD=omg/my/password",
|
"TOLGEE_SMTP_PASSWORD=omg/my/password",
|
||||||
"TOLGEE_SMTP_PORT=465",
|
"TOLGEE_SMTP_PORT=465",
|
||||||
"TOLGEE_SMTP_SSL_ENABLED=true",
|
"TOLGEE_SMTP_SSL_ENABLED=true",
|
||||||
"TOLGEE_SMTP_USERNAME=user@company.com",
|
"TOLGEE_SMTP_USERNAME=user@company.com",
|
||||||
];
|
];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
envs,
|
envs,
|
||||||
domains,
|
domains,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user