From 160bb27a599da09f5139d4c2f595bed29eaf1c54 Mon Sep 17 00:00:00 2001 From: boutmoun Date: Fri, 15 May 2026 12:51:36 +0000 Subject: [PATCH] =?UTF-8?q?=D8=AA=D8=AD=D8=AF=D9=8A=D8=AB=20src/main.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.ts b/src/main.ts index 4a0e6eb..4751cfb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,6 +27,10 @@ async function bootstrap(): Promise { ); const publicBaseUrl = (configService.get('publicBaseUrl', { infer: true }) ?? '').replace(/\/$/, ''); + const emailEnabled = configService.get('email.enabled', { infer: true }) ?? false; + const emailSmtpHost = configService.get('email.smtpHost', { infer: true }) ?? ''; + const emailSmtpUser = configService.get('email.smtpUser', { infer: true }) ?? ''; + const emailFromEmail = configService.get('email.fromEmail', { infer: true }) ?? ''; const uploadsDir = join(process.cwd(), storageBasePath); if (storageProvider === 'local' && !existsSync(uploadsDir)) { @@ -110,6 +114,10 @@ async function bootstrap(): Promise { await app.listen(port, host); appLogger.log(`Server listening on http://${host}:${port}`, 'Bootstrap'); appLogger.log(`Resolved PUBLIC_BASE_URL=${publicBaseUrl || `http://localhost:${port}`}`, 'Bootstrap'); + appLogger.log( + `Email config: enabled=${emailEnabled}, smtpHost=${emailSmtpHost || 'unset'}, smtpUserConfigured=${emailSmtpUser ? 'yes' : 'no'}, fromEmailConfigured=${emailFromEmail ? 'yes' : 'no'}`, + 'Bootstrap', + ); } void bootstrap();