mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge branch 'canary' into filebrowser
This commit is contained in:
5
apps/dokploy/public/templates/tolgee.svg
Normal file
5
apps/dokploy/public/templates/tolgee.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="100%" height="100%" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
style="fill:#EC407A;fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<path d="M97.16,7.27a16.94,16.94,0,0,0-1.9,24.47,16.36,16.36,0,0,0,5,3.83,3.23,3.23,0,0,1-2.9,5.77,23.14,23.14,0,0,1-11.41-13C73.83,31.1,63.46,37.09,52.82,46.51c-27.44,24.3-34.35,61.74-16.38,85.26-4.57,5.79-8,12.22-8.9,18.69a20.88,20.88,0,0,0,5.62,18c9.18,9.61,21.42,7.13,31.26,5.14,6.58-1.34,12.8-2.6,16.5-.23,3.22,2.07,3.47,3.87,3.61,4.45,2.1,9.32-5.79,13.89-7.67,16.27a1.48,1.48,0,0,0,1.13,2.4c3.48,0,9-1.18,12.34-4.08s7.16-7.9,5.89-16.32c-.08-.5-.18-1-.32-1.58-.86-3.35-3.1-7.57-8.61-11.09-7.72-4.95-17-3.07-25.22-1.41-9.76,2-16,2.85-20.37-1.71a9.13,9.13,0,0,1-2.46-8.19c.54-3.77,2.65-7.89,5.62-11.86,21.71,16.89,56.87,13.47,82.67-9.39a75.34,75.34,0,0,0,20.81-28.09A23.14,23.14,0,0,1,134.8,89a3.23,3.23,0,0,1,6.08-2.19,16.37,16.37,0,0,0,3.2,5.39,16.85,16.85,0,1,0,11.48-28,3.23,3.23,0,0,1-.51-6.44,23.41,23.41,0,0,1,12.88,2.69c2.6-14.08,3.34-31.41-2.06-37.51-4.08-4.61-20.62-8-35.18-7.76A23.48,23.48,0,0,1,130.8,25a3.23,3.23,0,0,1-6.33-1.28A16.94,16.94,0,0,0,97.16,7.27Zm63.25,21a5.29,5.29,0,0,1-.57,6.19c-1.29,1.14-2.72-.51-4.1-2.06s-3.1-3.42-1.81-4.56A5.74,5.74,0,0,1,160.41,28.27Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -527,6 +527,21 @@ export const templates: TemplateData[] = [
|
||||
tags: ["file", "manager"],
|
||||
load: () => import("./filebrowser/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "tolgee",
|
||||
name: "Tolgee",
|
||||
version: "v3.80.4",
|
||||
description:
|
||||
"Developer & translator friendly web-based localization platform",
|
||||
logo: "tolgee.svg",
|
||||
links: {
|
||||
github: "https://github.com/tolgee/tolgee-platform",
|
||||
website: "https://tolgee.io",
|
||||
docs: "https://tolgee.io/platform",
|
||||
},
|
||||
tags: ["self-hosted", "i18n", "localization", "translations"],
|
||||
load: () => import("./tolgee/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "portainer",
|
||||
name: "Portainer",
|
||||
|
||||
24
apps/dokploy/templates/tolgee/docker-compose.yml
Normal file
24
apps/dokploy/templates/tolgee/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: tolgee/tolgee:v3.80.4
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./config.yaml:/config.yaml
|
||||
ports:
|
||||
- '8080'
|
||||
environment:
|
||||
TOLGEE_FRONT_END_URL: ${TOLGEE_HOST}
|
||||
TOLGEE_AUTHENTICATION_ENABLED: ${TOLGEE_AUTHENTICATION_ENABLED}
|
||||
TOLGEE_AUTHENTICATION_INITIAL_PASSWORD: ${TOLGEE_AUTHENTICATION_INITIAL_PASSWORD}
|
||||
TOLGEE_AUTHENTICATION_INITIAL_USERNAME: ${TOLGEE_AUTHENTICATION_INITIAL_USERNAME}
|
||||
TOLGEE_AUTHENTICATION_JWT_SECRET: ${TOLGEE_AUTHENTICATION_JWT_SECRET}
|
||||
TOLGEE_MACHINE_TRANSLATION_GOOGLE_API_KEY: ${TOLGEE_MACHINE_TRANSLATION_GOOGLE_API_KEY}
|
||||
TOLGEE_SMTP_AUTH: ${TOLGEE_SMTP_AUTH}
|
||||
TOLGEE_SMTP_FROM: ${TOLGEE_SMTP_FROM}
|
||||
TOLGEE_SMTP_HOST: ${TOLGEE_SMTP_HOST}
|
||||
TOLGEE_SMTP_PASSWORD: ${TOLGEE_SMTP_PASSWORD}
|
||||
TOLGEE_SMTP_PORT: ${TOLGEE_SMTP_PORT}
|
||||
TOLGEE_SMTP_SSL_ENABLED: ${TOLGEE_SMTP_SSL_ENABLED}
|
||||
TOLGEE_SMTP_USERNAME: ${TOLGEE_SMTP_USERNAME}
|
||||
41
apps/dokploy/templates/tolgee/index.ts
Normal file
41
apps/dokploy/templates/tolgee/index.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const mainDomain = generateRandomDomain(schema);
|
||||
const jwtSecret = generateBase64(32);
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: mainDomain,
|
||||
port: 8080,
|
||||
serviceName: "app",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
`TOLGEE_HOST=${mainDomain}`,
|
||||
"TOLGEE_AUTHENTICATION_ENABLED=true",
|
||||
"TOLGEE_AUTHENTICATION_INITIAL_PASSWORD=admin",
|
||||
"TOLGEE_AUTHENTICATION_INITIAL_USERNAME=admin",
|
||||
`TOLGEE_AUTHENTICATION_JWT_SECRET=${jwtSecret}`,
|
||||
"TOLGEE_MACHINE_TRANSLATION_GOOGLE_API_KEY=my_google_api_key",
|
||||
"TOLGEE_SMTP_AUTH=true",
|
||||
"TOLGEE_SMTP_FROM=Tolgee <no-reply@mydomain.com>",
|
||||
"TOLGEE_SMTPHOST=email-smtp.regional-region.amazonaws.com",
|
||||
"TOLGEE_SMTP_PASSWORD=omg/my/password",
|
||||
"TOLGEE_SMTP_PORT=465",
|
||||
"TOLGEE_SMTP_SSL_ENABLED=true",
|
||||
"TOLGEE_SMTP_USERNAME=user@company.com",
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
domains,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user