From f1fc3f161aa9f2370d1bed7735635b68fbbb6ef6 Mon Sep 17 00:00:00 2001 From: DrMxrcy Date: Wed, 13 Nov 2024 05:07:15 -0500 Subject: [PATCH] Update index.ts --- apps/dokploy/templates/chatwoot/index.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/dokploy/templates/chatwoot/index.ts b/apps/dokploy/templates/chatwoot/index.ts index 599b82f5..0e051de2 100644 --- a/apps/dokploy/templates/chatwoot/index.ts +++ b/apps/dokploy/templates/chatwoot/index.ts @@ -9,7 +9,7 @@ import { export function generate(schema: Schema): Template { const mainDomain = generateRandomDomain(schema); - const postgresUsername = "chatwoot"; + const postgresUsername = "postgres"; const postgresPassword = generatePassword(); const redisPassword = generatePassword(); const secretKeyBase = generateBase64(64); @@ -23,15 +23,16 @@ export function generate(schema: Schema): Template { ]; const envs = [ - `CHATWOOT_HOST=${mainDomain}`, - `POSTGRES_USERNAME=${postgresUsername}`, + `POSTGRES_DB=chatwoot`, + `POSTGRES_USER=${postgresUsername}`, `POSTGRES_PASSWORD=${postgresPassword}`, `REDIS_PASSWORD=${redisPassword}`, + `CHATWOOT_HOST=${mainDomain}`, `SECRET_KEY_BASE=${secretKeyBase}`, - `SMTP_ADDRESS=${process.env.SMTP_ADDRESS || ''}`, - `SMTP_PORT=${process.env.SMTP_PORT || '587'}`, - `SMTP_USERNAME=${process.env.SMTP_USERNAME || ''}`, - `SMTP_PASSWORD=${process.env.SMTP_PASSWORD || ''}`, + `SMTP_ADDRESS=`, + `SMTP_PORT=587`, + `SMTP_USERNAME=`, + `SMTP_PASSWORD=`, ]; return {