mirror of
https://github.com/containrrr/watchtower.git
synced 2026-03-09 22:22:35 +01:00
feat(notifications): add support for custom sender name in email notifications
This commit is contained in:
parent
a44622770b
commit
149af7827b
2 changed files with 11 additions and 2 deletions
|
|
@ -246,6 +246,12 @@ func RegisterNotificationFlags(rootCmd *cobra.Command) {
|
|||
envString("WATCHTOWER_NOTIFICATION_EMAIL_FROM"),
|
||||
"Address to send notification emails from")
|
||||
|
||||
flags.StringP(
|
||||
"notification-email-from-name",
|
||||
"",
|
||||
envString("WATCHTOWER_NOTIFICATION_EMAIL_FROM_NAME"),
|
||||
"Name to send notification emails from")
|
||||
|
||||
flags.StringP(
|
||||
"notification-email-to",
|
||||
"",
|
||||
|
|
@ -425,6 +431,7 @@ func SetDefaults() {
|
|||
viper.SetDefault("WATCHTOWER_TIMEOUT", time.Second*10)
|
||||
viper.SetDefault("WATCHTOWER_NOTIFICATIONS", []string{})
|
||||
viper.SetDefault("WATCHTOWER_NOTIFICATIONS_LEVEL", "info")
|
||||
viper.SetDefault("WATCHTOWER_NOTIFICATION_EMAIL_FROM", "Watchtower")
|
||||
viper.SetDefault("WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT", 25)
|
||||
viper.SetDefault("WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG", "")
|
||||
viper.SetDefault("WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER", "watchtower")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue