summary refs log tree commit diff
path: root/src/util/config
diff options
context:
space:
mode:
authorLisa Marie Maginnis <me@lisamarie.pro>2026-03-13 16:14:04 +0100
committerRory& <root@rory.gay>2026-03-15 14:49:37 +0100
commit63effc3887983a4e00754bdcfddbadeb5f4cfbe2 (patch)
tree2777c8ec7ba15392bba25d095f06ef7ff279ca1e /src/util/config
parentadded missing author to replies (diff)
downloadserver-ts-63effc3887983a4e00754bdcfddbadeb5f4cfbe2.tar.xz
Added two new configuration options for SMTP: "starttls" and
"allowInsecure".

smtp.starttls will enable or disable STARTTLS
when "secure" is set to false (otherwise it does nothing).

smtp.allowInsecure will allow self-signed certificates if
set to true for both smtp.secure and smtp.starttls options.
Diffstat (limited to 'src/util/config')
-rw-r--r--src/util/config/types/subconfigurations/email/SMTP.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/config/types/subconfigurations/email/SMTP.ts b/src/util/config/types/subconfigurations/email/SMTP.ts

index 85c286a37..cf81aec92 100644 --- a/src/util/config/types/subconfigurations/email/SMTP.ts +++ b/src/util/config/types/subconfigurations/email/SMTP.ts
@@ -20,6 +20,8 @@ export class SMTPConfiguration { host: string | null = null; port: number | null = null; secure: boolean | null = null; + starttls: boolean = false; + allowInsecure: boolean = false; username: string | null = null; password: string | null = null; }