diff --git a/apps/dokploy/templates/templates.ts b/apps/dokploy/templates/templates.ts index 1ec09ad5..4419dcf2 100644 --- a/apps/dokploy/templates/templates.ts +++ b/apps/dokploy/templates/templates.ts @@ -871,7 +871,8 @@ export const templates: TemplateData[] = [ id: "yourls", name: "YOURLS", version: "latest", - description: "YOURLS (Your Own URL Shortener) is a set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or Bitly).", + description: + "YOURLS (Your Own URL Shortener) is a set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or Bitly).", logo: "yourls.svg", links: { github: "https://github.com/YOURLS/YOURLS", diff --git a/apps/dokploy/templates/yourls/index.ts b/apps/dokploy/templates/yourls/index.ts index 7a755b55..c96a2596 100644 --- a/apps/dokploy/templates/yourls/index.ts +++ b/apps/dokploy/templates/yourls/index.ts @@ -1,35 +1,35 @@ import { - type DomainSchema, - type Schema, - type Template, - generatePassword, - generateRandomDomain, + type DomainSchema, + type Schema, + type Template, + generatePassword, + generateRandomDomain, } from "../utils"; export function generate(schema: Schema): Template { - const mainDomain = generateRandomDomain(schema); - const mysqlPassword = generatePassword(); - const mysqlRootPassword = generatePassword(); - const adminPassword = generatePassword(); + const mainDomain = generateRandomDomain(schema); + const mysqlPassword = generatePassword(); + const mysqlRootPassword = generatePassword(); + const adminPassword = generatePassword(); - const domains: DomainSchema[] = [ - { - host: mainDomain, - port: 80, - serviceName: "yourls-app", - }, - ]; + const domains: DomainSchema[] = [ + { + host: mainDomain, + port: 80, + serviceName: "yourls-app", + }, + ]; - const envs = [ - `YOURLS_HOST=${mainDomain}`, - `YOURLS_ADMIN_USER=admin`, - `YOURLS_ADMIN_PASSWORD=${adminPassword}`, - `MYSQL_PASSWORD=${mysqlPassword}`, - `MYSQL_ROOT_PASSWORD=${mysqlRootPassword}`, - ]; + const envs = [ + `YOURLS_HOST=${mainDomain}`, + "YOURLS_ADMIN_USER=admin", + `YOURLS_ADMIN_PASSWORD=${adminPassword}`, + `MYSQL_PASSWORD=${mysqlPassword}`, + `MYSQL_ROOT_PASSWORD=${mysqlRootPassword}`, + ]; - return { - domains, - envs, - }; -} \ No newline at end of file + return { + domains, + envs, + }; +}