add shoutrrr

This commit is contained in:
Maximilian Brandau 2020-03-23 11:40:55 +01:00
parent 7a402fdee7
commit be2376a4e1
No known key found for this signature in database
GPG key ID: 6CBA8C2AC22BA157
5 changed files with 50 additions and 1 deletions

View file

@ -121,7 +121,7 @@ func RegisterNotificationFlags(rootCmd *cobra.Command) {
"notifications",
"n",
viper.GetStringSlice("WATCHTOWER_NOTIFICATIONS"),
" notification types to send (valid: email, slack, msteams, gotify)")
" notification types to send (valid: email, slack, msteams, gotify, shoutrrr)")
flags.StringP(
"notifications-level",
@ -238,6 +238,12 @@ Should only be used for testing.
"",
viper.GetString("WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN"),
"The Gotify Application required to query the Gotify API")
flags.StringArrayP(
"notification-shoutrrr-url",
"",
viper.GetStringSlice("WATCHTOWER_NOTIFICATION_SHOUTRRR_URL"),
"The shoutrrr URL to send notifications to")
}
// SetDefaults provides default values for environment variables