feat(config): improve configurability of VerpMode

This commit is contained in:
Gregor Kleen 2020-01-07 16:06:00 +01:00
parent 625c4fbc5e
commit a7c3fe76f2
3 changed files with 4 additions and 4 deletions

View File

@ -14,8 +14,8 @@ mail-from:
email: "_env:MAILFROM_EMAIL:uniworx@localhost"
mail-object-domain: "_env:MAILOBJECT_DOMAIN:localhost"
mail-verp:
separator: "+"
at-replacement: "="
separator: "_env:VERP_SEPARATOR:+"
at-replacement: "_env:VERP_AT_REPLACEMENT:="
mail-support:
name: "_env:MAILSUPPORT_NAME:"
email: "_env:MAILSUPPORT:uni2work@ifi.lmu.de"

View File

@ -194,7 +194,7 @@ makeFoundation appSettings'@AppSettings{..} = do
runAppLoggingT tempFoundation $ do
$logInfoS "InstanceID" $ UUID.toText appInstanceID
-- logDebugS "Configuration" $ tshow appSettings'
$logDebugS "Configuration" $ tshow appSettings'
smtpPool <- for appSmtpConf $ \c -> do
$logDebugS "setup" "SMTP-Pool"

View File

@ -393,7 +393,7 @@ instance FromJSON AppSettings where
appMailFrom <- o .: "mail-from"
appMailObjectDomain <- o .: "mail-object-domain"
appMailVerp <- o .: "mail-verp"
appMailVerp <- fromMaybe VerpNone . join <$> (o .:? "mail-verp" <|> pure Nothing)
appMailSupport <- o .: "mail-support"
appJobWorkers <- o .: "job-workers"