Files
dokploy/templates/jellyfin/index.ts
2024-07-22 12:58:14 -06:00

23 lines
428 B
TypeScript

// EXAMPLE
import {
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}`,
];
return {
envs,
};
}