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
|
// EXAMPLE
|
||||||
import {
|
import {
|
||||||
generateHash,
|
type Schema,
|
||||||
generateRandomDomain,
|
type Template,
|
||||||
type Template,
|
generateHash,
|
||||||
type Schema,
|
generateRandomDomain,
|
||||||
} from "../utils";
|
} from "../utils";
|
||||||
|
|
||||||
export function generate(schema: Schema): Template {
|
export function generate(schema: Schema): Template {
|
||||||
const mainServiceHash = generateHash(schema.projectName);
|
const mainServiceHash = generateHash(schema.projectName);
|
||||||
const randomDomain = generateRandomDomain(schema);
|
const randomDomain = generateRandomDomain(schema);
|
||||||
const port = 8096;
|
const port = 8096;
|
||||||
const envs = [
|
const envs = [
|
||||||
`JELLYFIN_HOST=${randomDomain}`,
|
`JELLYFIN_HOST=${randomDomain}`,
|
||||||
`HASH=${mainServiceHash}`,
|
`HASH=${mainServiceHash}`,
|
||||||
`JELLYFIN_PORT=${port}`
|
`JELLYFIN_PORT=${port}`,
|
||||||
];
|
];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
envs,
|
envs,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user