mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: format
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
// EXAMPLE
|
||||
import {
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const mainServiceHash = generateHash(schema.projectName);
|
||||
const randomDomain = generateRandomDomain(schema);
|
||||
const port = 8096;
|
||||
const envs = [
|
||||
`JELLYFIN_HOST=${randomDomain}`,
|
||||
`HASH=${mainServiceHash}`,
|
||||
`JELLYFIN_PORT=${port}`
|
||||
];
|
||||
const mainServiceHash = generateHash(schema.projectName);
|
||||
const randomDomain = generateRandomDomain(schema);
|
||||
const port = 8096;
|
||||
const envs = [
|
||||
`JELLYFIN_HOST=${randomDomain}`,
|
||||
`HASH=${mainServiceHash}`,
|
||||
`JELLYFIN_PORT=${port}`,
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
};
|
||||
return {
|
||||
envs,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user