fix: shared page language redirect + skip TLS for self-signed certs — closes #163 #164

- Language change on public shared page no longer triggers API call / login redirect
- New "Skip TLS certificate check" toggle in Admin > SMTP settings
- Also configurable via SMTP_SKIP_TLS_VERIFY=true env var
This commit is contained in:
Maurice
2026-03-30 22:26:09 +02:00
parent 8412f303dd
commit b1138eb9db
4 changed files with 24 additions and 3 deletions

View File

@@ -220,11 +220,13 @@ async function sendEmail(to: string, subject: string, body: string, userId?: num
const lang = userId ? getUserLanguage(userId) : 'en';
try {
const skipTls = process.env.SMTP_SKIP_TLS_VERIFY === 'true' || getAppSetting('smtp_skip_tls_verify') === 'true';
const transporter = nodemailer.createTransport({
host: config.host,
port: config.port,
secure: config.secure,
auth: config.user ? { user: config.user, pass: config.pass } : undefined,
...(skipTls ? { tls: { rejectUnauthorized: false } } : {}),
});
await transporter.sendMail({