refactor(core): Make new configs consistent (no-changelog) (#10393)

This commit is contained in:
Iván Ovejero
2024-08-14 11:30:26 +02:00
committed by GitHub
parent e640f1f42c
commit c0811b218a
14 changed files with 40 additions and 40 deletions

View File

@@ -1,7 +1,7 @@
import { Config, Env, Nested } from '../decorators';
@Config
export class SmtpAuth {
class SmtpAuth {
/** SMTP login username */
@Env('N8N_SMTP_USER')
user = '';
@@ -20,7 +20,7 @@ export class SmtpAuth {
}
@Config
export class SmtpConfig {
class SmtpConfig {
/** SMTP server host */
@Env('N8N_SMTP_HOST')
host = '';
@@ -65,7 +65,7 @@ export class TemplateConfig {
}
@Config
export class EmailConfig {
class EmailConfig {
/** How to send emails */
@Env('N8N_EMAIL_MODE')
mode: '' | 'smtp' = 'smtp';
@@ -76,3 +76,9 @@ export class EmailConfig {
@Nested
template: TemplateConfig;
}
@Config
export class UserManagementConfig {
@Nested
emails: EmailConfig;
}