mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(fix): YOURLS lint
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
return {
|
||||
domains,
|
||||
envs,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user