From 646d92757a66ad0bca078cffe5d4716683b554b7 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 29 Apr 2022 23:51:40 +0200 Subject: [PATCH] fix: Fider envs --- src/routes/services/[id]/fider/start.json.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/routes/services/[id]/fider/start.json.ts b/src/routes/services/[id]/fider/start.json.ts index 465b4195b..812497620 100644 --- a/src/routes/services/[id]/fider/start.json.ts +++ b/src/routes/services/[id]/fider/start.json.ts @@ -38,6 +38,7 @@ export const post: RequestHandler = async (event) => { emailNoreply, emailMailgunApiKey, emailMailgunDomain, + emailMailgunRegion, emailSmtpHost, emailSmtpPort, emailSmtpUser, @@ -59,8 +60,14 @@ export const post: RequestHandler = async (event) => { DATABASE_URL: `postgresql://${postgresqlUser}:${postgresqlPassword}@${id}-postgresql:5432/${postgresqlDatabase}?sslmode=disable`, JWT_SECRET: `${jwtSecret.replace(/\$/g, '$$$')}`, EMAIL_NOREPLY: emailNoreply, - EMAIL_MAILGUN_API: emailMailgunApiKey || null, - EMAIL_MAILGUN_DOMAIN: emailMailgunDomain || null + EMAIL_MAILGUN_API: emailMailgunApiKey, + EMAIL_MAILGUN_REGION: emailMailgunRegion, + EMAIL_MAILGUN_DOMAIN: emailMailgunDomain, + EMAIL_SMTP_HOST: emailSmtpHost, + EMAIL_SMTP_PORT: emailSmtpPort, + EMAIL_SMTP_USER: emailSmtpUser, + EMAIL_SMTP_PASSWORD: emailSmtpPassword, + EMAIL_SMTP_ENABLE_STARTTLS: emailSmtpEnableStartTls } }, postgresql: {