mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.26k stars 1.12k forks source link

Add option to send authorization header to webhook #5871

Open cedric-lamalle opened 2 months ago

cedric-lamalle commented 2 months ago

This PR adds a new option WATCHDOG_NOTIFY_WEBHOOK_AUTH_HEADER to send an header for authorization when calling watchdog webhook. This is useful as some webhooks don't accept Basic Authentication that can be put in the URL. I didn't force the header's name as some applications requires fancy header names as X-API-KEY for instance. Can be used too to "hide" Basic Authentication in the headers. I have tested it with a custom image in our production environment and it's working fine.