feat: add email diagnostics

This commit is contained in:
unknown
2026-07-16 17:50:58 +09:00
parent 9c4dac9a70
commit 6180161225
7 changed files with 212 additions and 2 deletions

View File

@@ -22,6 +22,14 @@ export const env = {
smsApiKey: process.env.ACS_SMS_API_KEY,
smsSender: process.env.ACS_SMS_SENDER,
smsTimeoutMs: Number(process.env.ACS_SMS_TIMEOUT_MS ?? 10000),
mailHost: process.env.ACS_MAIL_HOST,
mailPort: Number(process.env.ACS_MAIL_PORT ?? 25),
mailFrom: process.env.ACS_MAIL_FROM,
mailUsername: process.env.ACS_MAIL_USERNAME,
mailPassword: process.env.ACS_MAIL_PASSWORD,
mailSmtpAuth: (process.env.ACS_MAIL_SMTP_AUTH ?? '').toLowerCase() === 'true',
mailStartTls: (process.env.ACS_MAIL_STARTTLS ?? '').toLowerCase() === 'true',
mailTimeoutMs: Number(process.env.ACS_MAIL_TIMEOUT_MS ?? 10000),
cookieSecure:
(process.env.ACS_COOKIE_SECURE ?? '').toLowerCase() === 'true' ||
(process.env.ACS_PUBLIC_BASE_URL ?? '').startsWith('https://'),