Skip to content

Commit

Permalink
Merge pull request #1856 from WangZhiYao/main
Browse files Browse the repository at this point in the history
feat(server): Support for SMTP-over-TLS
  • Loading branch information
AmruthPillai committed Apr 9, 2024
2 parents fe77b14 + 1f5dce2 commit dd97c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const configSchema = z.object({

// Mail Server
MAIL_FROM: z.string().includes("@").optional().default("noreply@localhost"),
SMTP_URL: z.string().url().startsWith("smtp://").optional(),
SMTP_URL: z.string().url().refine(url => url.startsWith("smtp://") || url.startsWith("smtps://")).optional(),

// Storage
STORAGE_ENDPOINT: z.string(),
Expand Down

0 comments on commit dd97c6d

Please sign in to comment.