mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-06 03:31:02 -06:00
[server][mail] Initialize
This commit is contained in:
@@ -137,9 +137,15 @@ func SetupCommand() {
|
||||
steve.RegisterWorker(client, &jobs.DeleteContentsWorker{})
|
||||
}
|
||||
serve.Cfg = cfg.Server
|
||||
mail.Cfg = cfg.Mail
|
||||
core.Cfg = cfg.Core
|
||||
|
||||
if err := mail.Initialize(cfg.Mail); err != nil {
|
||||
if errors.Is(err, mail.EmailNotConfigured) {
|
||||
log.Info().Msg("mail not configured")
|
||||
} else {
|
||||
log.Fatal().Err(err).Msg("failed to initialize mail")
|
||||
}
|
||||
}
|
||||
auth.Init(cfg.Auth, logger)
|
||||
|
||||
if err := storage.Initialize(db.Get(context.Background()), cfg.Storage); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user