watchtower icon indicating copy to clipboard operation
watchtower copied to clipboard

Generic webhook support for notificiation

Open atropos112 opened this issue 8 months ago • 2 comments

Is your feature request related to a problem? Please describe.

Currently watchtower supports msteams, slack, gotify and email and thats great.

What does surprise me is that i have no way (at least i couldn't hack it to do so) for me to give you a url and to have you webhook call me, no fancy slack/msteams etc. just "here is a link, send a json there please".

I would think that supporting msteams, slack etc. does that and then some so am somewhat surprised there is (at least not documented) way of doing just that.

Describe the solution you'd like

Have a generic webhook, providing a url to send notifications to in some json format

Describe alternatives you've considered

I tried getting slack notification to send me json to my source instead but the format of my url is not matching what it is expecting and its complaining the token is incorrect.

Additional context

No response

atropos112 avatar Mar 26 '25 08:03 atropos112

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Mar 26 '25 08:03 github-actions[bot]

This feature is available through watchtower's shoutrrr notifications.

A generic webhook can be triggered by setting --notification-url (env. WATCHTOWER_NOTIFICATION_URL) to a url with a generic prefix. e.g.

  • generic://example.com/webhook-endpoint
  • generic+https://example.com/webhook-endpoint

More info about the shoutrrr generic prefix can be found in their documentation.

red4dj avatar May 20 '25 04:05 red4dj