mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Update index.ts
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
|||||||
|
|
||||||
export function generate(schema: Schema): Template {
|
export function generate(schema: Schema): Template {
|
||||||
const mainDomain = generateRandomDomain(schema);
|
const mainDomain = generateRandomDomain(schema);
|
||||||
const postgresUsername = "chatwoot";
|
const postgresUsername = "postgres";
|
||||||
const postgresPassword = generatePassword();
|
const postgresPassword = generatePassword();
|
||||||
const redisPassword = generatePassword();
|
const redisPassword = generatePassword();
|
||||||
const secretKeyBase = generateBase64(64);
|
const secretKeyBase = generateBase64(64);
|
||||||
@@ -23,15 +23,16 @@ export function generate(schema: Schema): Template {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const envs = [
|
const envs = [
|
||||||
`CHATWOOT_HOST=${mainDomain}`,
|
`POSTGRES_DB=chatwoot`,
|
||||||
`POSTGRES_USERNAME=${postgresUsername}`,
|
`POSTGRES_USER=${postgresUsername}`,
|
||||||
`POSTGRES_PASSWORD=${postgresPassword}`,
|
`POSTGRES_PASSWORD=${postgresPassword}`,
|
||||||
`REDIS_PASSWORD=${redisPassword}`,
|
`REDIS_PASSWORD=${redisPassword}`,
|
||||||
|
`CHATWOOT_HOST=${mainDomain}`,
|
||||||
`SECRET_KEY_BASE=${secretKeyBase}`,
|
`SECRET_KEY_BASE=${secretKeyBase}`,
|
||||||
`SMTP_ADDRESS=${process.env.SMTP_ADDRESS || ''}`,
|
`SMTP_ADDRESS=`,
|
||||||
`SMTP_PORT=${process.env.SMTP_PORT || '587'}`,
|
`SMTP_PORT=587`,
|
||||||
`SMTP_USERNAME=${process.env.SMTP_USERNAME || ''}`,
|
`SMTP_USERNAME=`,
|
||||||
`SMTP_PASSWORD=${process.env.SMTP_PASSWORD || ''}`,
|
`SMTP_PASSWORD=`,
|
||||||
];
|
];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user