From 4c34643287a63b6ae20528780e8c34832edcfe4b Mon Sep 17 00:00:00 2001 From: mafrasil Date: Fri, 6 Dec 2024 20:38:02 +0400 Subject: [PATCH] tweak env --- apps/dokploy/templates/triggerdotdev/index.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/dokploy/templates/triggerdotdev/index.ts b/apps/dokploy/templates/triggerdotdev/index.ts index 7d92543a..2411c2b8 100644 --- a/apps/dokploy/templates/triggerdotdev/index.ts +++ b/apps/dokploy/templates/triggerdotdev/index.ts @@ -33,17 +33,17 @@ export function generate(schema: Schema): Template { `RUNTIME_PLATFORM=docker-compose`, `V3_ENABLED=true`, - // Trigger configuration + `# Domain configuration`, `TRIGGER_DOMAIN=${triggerDomain}`, `TRIGGER_PROTOCOL=http`, - // Database configuration with secure credentials + `# Database configuration with secure credentials`, `POSTGRES_USER=${dbUser}`, `POSTGRES_PASSWORD=${dbPassword}`, `POSTGRES_DB=${dbName}`, `DATABASE_URL=postgresql://${dbUser}:${dbPassword}@postgres:5432/${dbName}`, - // Secrets + `# Secrets`, `MAGIC_LINK_SECRET=${magicLinkSecret}`, `SESSION_SECRET=${sessionSecret}`, `ENCRYPTION_KEY=${encryptionKey}`, @@ -57,6 +57,11 @@ export function generate(schema: Schema): Template { `DEFAULT_ORG_EXECUTION_CONCURRENCY_LIMIT=300`, `DEFAULT_ENV_EXECUTION_CONCURRENCY_LIMIT=100`, + `DIRECT_URL=\${DATABASE_URL}`, + `REDIS_HOST=redis`, + `REDIS_PORT=6379`, + `REDIS_TLS_DISABLED=true`, + `# If this is set, emails that are not specified won't be able to log in`, `# WHITELISTED_EMAILS="authorized@yahoo.com|authorized@gmail.com"`, `# Accounts with these emails will become admins when signing up and get access to the admin panel`,