mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 18:29:15 +03:00
feat: added mailer env
This commit is contained in:
parent
5171f65429
commit
294a4f584d
@ -18,7 +18,7 @@ const mailConfig: MailConfig = {
|
|||||||
| a mailer
|
| a mailer
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
mailer: 'mailgun',
|
mailer: Env.get('MAILER'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
1
env.ts
1
env.ts
@ -30,6 +30,7 @@ export default Env.rules({
|
|||||||
REDIS_HOST: Env.schema.string({ format: 'host' }),
|
REDIS_HOST: Env.schema.string({ format: 'host' }),
|
||||||
REDIS_PORT: Env.schema.number(),
|
REDIS_PORT: Env.schema.number(),
|
||||||
REDIS_PASSWORD: Env.schema.string.optional(),
|
REDIS_PASSWORD: Env.schema.string.optional(),
|
||||||
|
MAILER: Env.schema.enum(['mailgun', 'smtp'] as const),
|
||||||
SMTP_HOST: Env.schema.string({ format: 'host' }),
|
SMTP_HOST: Env.schema.string({ format: 'host' }),
|
||||||
SMTP_PORT: Env.schema.number(),
|
SMTP_PORT: Env.schema.number(),
|
||||||
SMTP_USERNAME: Env.schema.string(),
|
SMTP_USERNAME: Env.schema.string(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user