mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
30 lines
668 B
TypeScript
30 lines
668 B
TypeScript
import {
|
|
type Schema,
|
|
type Template,
|
|
generateBase64,
|
|
generateHash,
|
|
generateRandomDomain,
|
|
} from "../utils";
|
|
|
|
export function generate(schema: Schema): Template {
|
|
const mainServiceHash = generateHash(schema.projectName);
|
|
const randomDomain = generateRandomDomain(schema);
|
|
const secretKeyBase = generateBase64(64);
|
|
|
|
const envs = [
|
|
`DOUBLEZERO_HOST=${randomDomain}`,
|
|
"DOUBLEZERO_PORT=4000",
|
|
`HASH=${mainServiceHash}`,
|
|
`SECRET_KEY_BASE=${secretKeyBase}`,
|
|
"AWS_ACCESS_KEY_ID=your-aws-access-key",
|
|
"AWS_SECRET_ACCESS_KEY=your-aws-secret-key",
|
|
"AWS_REGION=your-aws-region",
|
|
"SQS_URL=your-aws-sqs-url",
|
|
"SYSTEM_EMAIL=",
|
|
];
|
|
|
|
return {
|
|
envs,
|
|
};
|
|
}
|