feat(fix): YOURLS lint

This commit is contained in:
DrMxrcy
2024-11-20 09:52:35 -05:00
parent c0876044b0
commit 0654804821
2 changed files with 30 additions and 29 deletions

View File

@@ -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",

View File

@@ -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,
};
}